mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +03:00
Merge OCC22105 and OCC22360
This commit is contained in:
parent
065bb8b023
commit
c3d894867d
@ -238,10 +238,15 @@ void OSD_FontMgr::InitFontDataBase() {
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user