]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Dialog crashed on selected vertex as subshape, if Main Object is not selected yet.
authordmv <dmv@opencascade.com>
Fri, 17 Sep 2010 14:12:16 +0000 (14:12 +0000)
committerdmv <dmv@opencascade.com>
Fri, 17 Sep 2010 14:12:16 +0000 (14:12 +0000)
src/GroupGUI/GroupGUI_GroupDlg.cxx

index 8391cb3bfc6267c6f7ea03fd914c9a6293ce4d66..07f5eae4eda4fc90bba788f94a96b6a9d26f01a9 100644 (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;