Salome HOME
Issue #18451: Error in dump by coordinates
[modules/shaper.git] / src / SketcherPrs / SketcherPrs_Transformation.cpp
index 53be1f2fe30673992c093ddbadd1b7c8bfebf3a9..82e375f0f989fc0b401f1006eff3d8eb9373f12d 100644 (file)
@@ -48,9 +48,11 @@ SketcherPrs_Transformation::SketcherPrs_Transformation(ModelAPI_Feature* theCons
 }
 
 bool SketcherPrs_Transformation::IsReadyToDisplay(ModelAPI_Feature* theConstraint,
-                                                  const std::shared_ptr<GeomAPI_Ax3>&/* thePlane*/)
+                                                  const std::shared_ptr<GeomAPI_Ax3>& thePlane)
 {
   bool aReadyToDisplay = false;
+  if (!thePlane)
+    return aReadyToDisplay;
 
   std::shared_ptr<ModelAPI_Data> aData = theConstraint->data();
   // Get transformated objects list