From: mzn Date: Wed, 1 Feb 2006 10:38:35 +0000 (+0000) Subject: Fix for bug IPAL11303 (CRASH after calling "Create Group" dlg for referenced object). X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9eefb7a14e2cca28160eb29108ce3b4e56279246;p=modules%2Fgeom.git Fix for bug IPAL11303 (CRASH after calling "Create Group" dlg for referenced object). --- diff --git a/src/GroupGUI/GroupGUI_GroupDlg.cxx b/src/GroupGUI/GroupGUI_GroupDlg.cxx index 041774bf4..e0f11a31c 100644 --- a/src/GroupGUI/GroupGUI_GroupDlg.cxx +++ b/src/GroupGUI/GroupGUI_GroupDlg.cxx @@ -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;