Salome HOME
refs #30 - Sketch base GUI: create, draw lines
[modules/shaper.git] / src / PartSet / PartSet_OperationEditLine.cpp
index 5486ffff028ff7ddc4aa93668172e25c2163746d..c9fbbfd8692b7f271fcf8ee81bfcf29301b66e29 100644 (file)
@@ -145,7 +145,7 @@ void  PartSet_OperationEditLine::moveLinePoint(boost::shared_ptr<ModelAPI_Featur
                                                double theDeltaX, double theDeltaY,
                                                const std::string& theAttribute)
 {
-  if (!theFeature)
+  if (!theFeature || theFeature->getKind() != "SketchLine")
     return;
 
   boost::shared_ptr<ModelAPI_Data> aData = theFeature->data();