From: nds Date: Tue, 26 Apr 2016 15:25:57 +0000 (+0300) Subject: Issue #1448 problem with saved study and visualization of distance: linux compilation... X-Git-Tag: V_2.3.0~95 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=08f04958360fd953dacc3875d3604538686ba828;p=modules%2Fshaper.git Issue #1448 problem with saved study and visualization of distance: linux compilation correction --- diff --git a/src/SketchPlugin/SketchPlugin_Sketch.cpp b/src/SketchPlugin/SketchPlugin_Sketch.cpp index ac94b5dd1..debbfbb33 100755 --- a/src/SketchPlugin/SketchPlugin_Sketch.cpp +++ b/src/SketchPlugin/SketchPlugin_Sketch.cpp @@ -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);