]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix for bug IPAL11303 (CRASH after calling "Create Group" dlg for referenced object).
authormzn <mzn@opencascade.com>
Wed, 1 Feb 2006 10:38:35 +0000 (10:38 +0000)
committermzn <mzn@opencascade.com>
Wed, 1 Feb 2006 10:38:35 +0000 (10:38 +0000)
src/GroupGUI/GroupGUI_GroupDlg.cxx

index 041774bf4a8183a2f54b4d9a6662aee7118d7ad7..e0f11a31c9d3de276fac86c6e5d77e7c76c9561a 100644 (file)
@@ -544,7 +544,7 @@ void GroupGUI_GroupDlg::updateState()
       ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->GetIndexes( firstIObject(), aMapIndex );
   }
   
-  if ( !aMapIndex.Extent() ) // try to find out and process the object browser selection
+  if ( !aMapIndex.Extent() && !CORBA::is_nil( myMainObj ) ) // try to find out and process the object browser selection
     {
       isAdd = true;
       GEOM::ListOfGO anObjects;