Salome HOME
Allow to react the sketch features on modification of its attributes
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Line.cpp
index e31dfb59d02c13fc80236d88bfcdb8d81257a932..429f7e132cf55ae41fcd7a55d8ba8f85af136eb4 100644 (file)
@@ -98,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) {
@@ -116,3 +116,4 @@ void SketchPlugin_Line::attributeChanged(const std::string& theID) {
     }
   }
 }
+