Salome HOME
Issue #662 Warning on remove or rename of (may be) used object in PartSet
authornds <natalia.donis@opencascade.com>
Fri, 10 Jul 2015 07:07:42 +0000 (10:07 +0300)
committernds <natalia.donis@opencascade.com>
Fri, 10 Jul 2015 07:08:08 +0000 (10:08 +0300)
There also was a crash when remove sketch(in PartSet), which is used in the Part_1. Edit extrusion ->crash in OperationPrs. The null object should be skipped like it is done in not simple selection attribute(not a list).

src/PartSet/PartSet_OperationPrs.cpp

index 5e7d2f2ec834c288d6b849888a1d143f4c0ec165..36de5da0313ead2c96c99ee835112f4f3946ce00 100755 (executable)
@@ -137,10 +137,10 @@ void addValue(const ObjectPtr& theObject, const GeomShapePtr& theShape,
     }
     if (!isSubObject(theObject, theFeature)) {
       if (theObjectShapes.contains(theObject))
-        theObjectShapes[theObject].append(theShape);
+        theObjectShapes[theObject].append(aShape);
       else {
         QList<GeomShapePtr> aShapes;
-        aShapes.append(theShape);
+        aShapes.append(aShape);
         theObjectShapes[theObject] = aShapes;
       }
     }