Salome HOME
Change icons for chamfer
[modules/shaper.git] / src / FiltersPlugin / FiltersPlugin_OnGeometry.cpp
index c7fa73d32aa2516a475566fe54ffa27a892928af..aeeb676504db8f944fb90adeb9342a6cee0dcb7d 100644 (file)
@@ -37,7 +37,9 @@ bool FiltersPlugin_OnGeometry::isOk(const GeomShapePtr& theShape, const ResultPt
   for (int i = 0; i < aList->size(); i++) {
     AttributeSelectionPtr aAttr = aList->value(i);
     GeomShapePtr aGeom = aAttr->value();
-    if (aGeom->isSameGeometry(theShape))
+    if (!aGeom)
+      aGeom = aAttr->context()->shape();
+    if (aGeom && aGeom->isSameGeometry(theShape))
       return true;
   }
   return false;