mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0023241: DRAWEXE crash on startup in Mac OS X
Fixing problem with Draw starting Added problem description into the sources. Cosmetic fix. Replaced tabs with spaces.
This commit is contained in:
parent
c4ecd2574b
commit
4ad91217b5
@ -1065,7 +1065,11 @@ Standard_Boolean Init_Appli()
|
||||
Tk_GeometryRequest(mainWindow, 200, 200);
|
||||
|
||||
if (Draw_WindowDisplay == NULL) {
|
||||
Draw_WindowDisplay = Tk_Display(mainWindow);
|
||||
Draw_WindowDisplay = XOpenDisplay(NULL);
|
||||
// Replaced Tk_Display(mainWindow) with XOpenDisplay; On Mac OS X Tk_Display
|
||||
// returns a pointer to Display structure defined in system Tcl/Tk libraries.
|
||||
// This structure differs from structure defined in X11 library and
|
||||
// this caused DRAWEXE crash on startup.
|
||||
}
|
||||
if (Draw_WindowDisplay == NULL) {
|
||||
cout << "Cannot open display : "<<XDisplayName(NULL)<<endl;
|
||||
|
Loading…
x
Reference in New Issue
Block a user