Salome HOME
La part
[modules/shaper.git] / src / FiltersPlugin / FiltersPlugin_OnGeometry.cpp
index aeeb676504db8f944fb90adeb9342a6cee0dcb7d..d234e4f8ec2114c07732fe99d00d3fb5ee47f1bb 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2022  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -35,10 +35,10 @@ bool FiltersPlugin_OnGeometry::isOk(const GeomShapePtr& theShape, const ResultPt
   if (!aList.get())
     return false;
   for (int i = 0; i < aList->size(); i++) {
-    AttributeSelectionPtr aAttr = aList->value(i);
-    GeomShapePtr aGeom = aAttr->value();
+    AttributeSelectionPtr aCurAttr = aList->value(i);
+    GeomShapePtr aGeom = aCurAttr->value();
     if (!aGeom)
-      aGeom = aAttr->context()->shape();
+      aGeom = aCurAttr->context()->shape();
     if (aGeom && aGeom->isSameGeometry(theShape))
       return true;
   }