Salome HOME
Prevent processing SHAPERSTUDY objects`
[modules/geom.git] / src / GEOMGUI / GEOMGUI_Selection.cxx
index 32eaabf8744443b250fe3740fcf2dc4ea4eb03ae..64193d83d965e03b318324c56ead0ae2c36446f8 100644 (file)
@@ -132,7 +132,7 @@ void GEOMGUI_Selection::init( const QString& context, LightApp_SelectionMgr* sel
       QString anEntry = entry( idx );
       if ( study && !anEntry.isEmpty() ) {
         _PTR(SObject) aSO( study->FindObjectID( anEntry.toStdString() ) );
-        if ( aSO ) {
+        if ( GeometryGUI::IsInGeomComponent( aSO )) {
           CORBA::Object_var varObj = GeometryGUI::ClientSObjectToObject( aSO );
           myObjects[idx] = GEOM::GEOM_BaseObject::_narrow( varObj );
         }