mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-30 01:00:32 +05:00
Dialog crashed on selected vertex as subshape, if Main Object is not selected yet.
This commit is contained in:
parent
4c229dbd79
commit
356b290042
@ -473,7 +473,7 @@ void GroupGUI_GroupDlg::SelectionIntoArgument()
|
||||
}
|
||||
}
|
||||
else { // an attempt to synchronize list box selection with 3d viewer
|
||||
if (myBusy) {
|
||||
if ( myBusy || myMainObj->_is_nil() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -617,7 +617,8 @@ int GroupGUI_GroupDlg::getSelectedSubshapes (TColStd_IndexedMapOfInteger& theMap
|
||||
theMapIndex.Clear();
|
||||
|
||||
SalomeApp_Application* app = myGeomGUI->getApp();
|
||||
if (!app) return 0;
|
||||
if ( !app || myMainObj->_is_nil() )
|
||||
return 0;
|
||||
|
||||
LightApp_SelectionMgr* aSelMgr = app->selectionMgr();
|
||||
SALOME_ListIO aSelList;
|
||||
|
Loading…
Reference in New Issue
Block a user