From: nds Date: Fri, 10 Jul 2015 07:07:42 +0000 (+0300) Subject: Issue #662 Warning on remove or rename of (may be) used object in PartSet X-Git-Tag: V_1.3.0~41 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=511632b94668ea8264a098558848882bd99c187f;p=modules%2Fshaper.git Issue #662 Warning on remove or rename of (may be) used object in PartSet 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). --- diff --git a/src/PartSet/PartSet_OperationPrs.cpp b/src/PartSet/PartSet_OperationPrs.cpp index 5e7d2f2ec..36de5da03 100755 --- a/src/PartSet/PartSet_OperationPrs.cpp +++ b/src/PartSet/PartSet_OperationPrs.cpp @@ -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 aShapes; - aShapes.append(theShape); + aShapes.append(aShape); theObjectShapes[theObject] = aShapes; } }