Fix for bug IPAL11303 (CRASH after calling "Create Group" dlg for referenced object).

This commit is contained in:
mzn 2006-02-01 10:38:35 +00:00
parent 6602042ae0
commit 9eefb7a14e

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