Salome HOME
Apply widget value change by enter/tab event.
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Line.cpp
index 555b8ae7f4e18e85e3d490e5537bd7a6fd2c899e..f4382e4314af3983bc7a57310c8228aa4a2128f2 100644 (file)
@@ -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<GeomAPI_Shape> 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) {
     }
   }
 }
-