]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/SketcherPrs/SketcherPrs_Mirror.cpp
Salome HOME
Issue #3074: SIGSEGV when changing sketch plane
[modules/shaper.git] / src / SketcherPrs / SketcherPrs_Mirror.cpp
index eb3b12c495857de7ebd0b9ce1fb232ba8fe1ab65..c66ced3ebc1031c61ff4301f1f79094c20e6330e 100644 (file)
@@ -40,9 +40,11 @@ SketcherPrs_Mirror::SketcherPrs_Mirror(ModelAPI_Feature* theConstraint,
 }
 
 bool SketcherPrs_Mirror::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;
 
   // Get axis of mirror
   ObjectPtr aAxisObj =