From 511632b94668ea8264a098558848882bd99c187f Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 10 Jul 2015 10:07:42 +0300 Subject: [PATCH] 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). --- src/PartSet/PartSet_OperationPrs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } -- 2.39.2