Dialog crashed on selected vertex as subshape, if Main Object is not selected yet.

This commit is contained in:
dmv 2010-09-17 14:12:16 +00:00
parent 4c229dbd79
commit 356b290042

View File

@ -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;