Salome HOME
Prevent processing SHAPERSTUDY objects`
[modules/geom.git] / src / RepairGUI / RepairGUI_SuppressFacesDlg.cxx
index 67710eb7323c04d1b8737148d0f97688b6b448fd..52cd67b7bd8cbe12b99b4ef53f4f10db5b001f98 100644 (file)
@@ -224,6 +224,7 @@ void RepairGUI_SuppressFacesDlg::SelectionIntoArgument()
         QString anEntry = anIO->getEntry();
 
         _PTR(SObject) aSObj (aStudy->FindObjectID(anEntry.toUtf8().constData()));
+        if ( ! GeometryGUI::IsInGeomComponent( aSObj )) continue;
         GEOM::GEOM_Object_var aGeomObj =
           GEOM::GEOM_Object::_narrow(GeometryGUI::ClientSObjectToObject(aSObj));
         TopoDS_Shape aShape;