mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0028333: Draw Harness - whatis command hangs when selection is activated with no opened view
Added new method Draw_Window::IsMapped() for checked window state. Draw_Window using XLib now does not exit application on closing window. The method Draw_Viewer::Select() (called by whatis command) has been corrected so as not to enter the loop if no views are initialized.
This commit is contained in:
@@ -327,6 +327,21 @@ Standard_Boolean Draw_Window::DefineColor (const Standard_Integer&, Standard_CSt
|
||||
return Standard_True; // unused
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : IsMapped
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
bool Draw_Window::IsMapped() const
|
||||
{
|
||||
if (Draw_VirtualWindows
|
||||
|| myWindow == NULL)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return [myWindow isVisible];
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : DisplayWindow
|
||||
//purpose :
|
||||
|
Reference in New Issue
Block a user