]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1448 problem with saved study and visualization of distance: linux compilation...
authornds <nds@opencascade.com>
Tue, 26 Apr 2016 15:25:57 +0000 (18:25 +0300)
committernds <nds@opencascade.com>
Tue, 26 Apr 2016 15:25:57 +0000 (18:25 +0300)
src/SketchPlugin/SketchPlugin_Sketch.cpp

index ac94b5dd1f174e2bf436f2a1a7793b3c0ec70979..debbfbb336b6bb47607c08e4212cf0a1661a95b7 100755 (executable)
@@ -292,7 +292,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(NULL, NULL);
+    theFeature->selection(SketchPlugin_SketchEntity::EXTERNAL_ID())->setValue(ResultPtr(),
+                                                                              GeomShapePtr());
   aNewFeature->data()->setName(aUniqueFeatureName);
   // text expressions could block setValue of some attributes
   SketchPlugin_Tools::clearExpressions(aNewFeature);