X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_Line.cpp;h=f4382e4314af3983bc7a57310c8228aa4a2128f2;hb=74e9ba33303efc2282db1261706e904efa36b255;hp=555b8ae7f4e18e85e3d490e5537bd7a6fd2c899e;hpb=cc84ddead2c5dcb864d24de04df60b378f750824;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_Line.cpp b/src/SketchPlugin/SketchPlugin_Line.cpp index 555b8ae7f..f4382e431 100644 --- a/src/SketchPlugin/SketchPlugin_Line.cpp +++ b/src/SketchPlugin/SketchPlugin_Line.cpp @@ -111,7 +111,8 @@ bool SketchPlugin_Line::isFixed() { } void SketchPlugin_Line::attributeChanged(const std::string& theID) { - if (theID == EXTERNAL_ID()) { + // the second condition for unability to move external segments anywhere + if (theID == EXTERNAL_ID() || isFixed()) { std::shared_ptr aSelection = data()->selection(EXTERNAL_ID())->value(); // update arguments due to the selection value if (aSelection && !aSelection->isNull() && aSelection->isEdge()) { @@ -125,4 +126,3 @@ void SketchPlugin_Line::attributeChanged(const std::string& theID) { } } } -