projects
/
occt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
065bb8b
)
Merge OCC22105 and OCC22360
author
bugmaster
<>
Thu, 28 Apr 2011 16:33:34 +0000
(16:33 +0000)
committer
bugmaster
<bugmaster@opencascade.com>
Mon, 5 Mar 2012 15:28:28 +0000
(19:28 +0400)
src/OSD/OSD_FontMgr.cxx
patch
|
blob
|
blame
|
history
diff --git
a/src/OSD/OSD_FontMgr.cxx
b/src/OSD/OSD_FontMgr.cxx
index
adec9c2
..
4bb8596
100755
(executable)
--- a/
src/OSD/OSD_FontMgr.cxx
+++ b/
src/OSD/OSD_FontMgr.cxx
@@
-238,10
+238,15
@@
void OSD_FontMgr::InitFontDataBase() {
Handle(TCollection_HAsciiString) str = new TCollection_HAsciiString;
Display * disp = XOpenDisplay("localhost:0.0");
Handle(TCollection_HAsciiString) str = new TCollection_HAsciiString;
Display * disp = XOpenDisplay("localhost:0.0");
- if (
!disp
)
+ if (
!disp
)
{
{
- cout << "Display is NULL!" << endl;
- return ;
+ // let the X server find the available connection
+ disp = XOpenDisplay(":0.0");
+ if (!disp)
+ {
+ cout << "Display is NULL!" << endl;
+ return ;
+ }
}
Standard_Integer npaths = 0;
}
Standard_Integer npaths = 0;