Salome HOME
Issue #394 Undo-ing a Sketch element
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Line.cpp
index 50d8f438f5072358de6535d2d05472f8f110e230..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) {