Salome HOME
Allow to react the sketch features on modification of its attributes
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Line.cpp
index 83ee216593697877dd81eec97f23c76792bef900..429f7e132cf55ae41fcd7a55d8ba8f85af136eb4 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
+
 // File:        SketchPlugin_Line.cxx
 // Created:     27 Mar 2014
 // Author:      Mikhail PONIKAROV
@@ -96,7 +98,7 @@ double SketchPlugin_Line::distanceToPoint(const std::shared_ptr<GeomAPI_Pnt2d>&
 }
 
 bool SketchPlugin_Line::isFixed() {
-  return data()->selection(EXTERNAL_ID())->context();
+  return data()->selection(EXTERNAL_ID())->context().get();
 }
 
 void SketchPlugin_Line::attributeChanged(const std::string& theID) {
@@ -114,3 +116,4 @@ void SketchPlugin_Line::attributeChanged(const std::string& theID) {
     }
   }
 }
+