]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1487 external edges are created wrong
authornds <nds@opencascade.com>
Tue, 31 Jan 2017 08:17:52 +0000 (11:17 +0300)
committernds <nds@opencascade.com>
Tue, 31 Jan 2017 08:17:52 +0000 (11:17 +0300)
src/SketchPlugin/SketchPlugin_Sketch.cpp

index 4de9585ee05cc0d914186d692e08254624155f13..9f6b63a77ba0a12d80460194684b86eb3cd2ecec 100755 (executable)
@@ -295,8 +295,8 @@ FeaturePtr SketchPlugin_Sketch::addUniqueNamedCopiedFeature(FeaturePtr theFeatur
   theFeature->data()->copyTo(aNewFeature->data());
   // external state should not be copied as a new object is an object of the current sketch
   if (theFeature->selection(SketchPlugin_SketchEntity::EXTERNAL_ID()).get())
-    theFeature->selection(SketchPlugin_SketchEntity::EXTERNAL_ID())->setValue(ResultPtr(),
-                                                                              GeomShapePtr());
+    aNewFeature->selection(SketchPlugin_SketchEntity::EXTERNAL_ID())->setValue(ResultPtr(),
+                                                                               GeomShapePtr());
   aNewFeature->data()->setName(aUniqueFeatureName);
   // text expressions could block setValue of some attributes
   SketchPlugin_Tools::clearExpressions(aNewFeature);