Salome HOME
Issue #2998: Add help description for automatic creation of constraints
[modules/shaper.git] / src / SketcherPrs / SketcherPrs_Angle.cpp
index 3a876982b326ba180bdd58197b333476ed79c396..f5bcf8e3de258adabb2791c2ae02b9090f5b3ed4 100644 (file)
@@ -165,6 +165,8 @@ void SketcherPrs_Angle::Compute(const Handle(PrsMgr_PresentationManager3d)& theP
                                 const Handle(Prs3d_Presentation)& thePresentation,
                                 const Standard_Integer theMode)
 {
+  if (!plane().get())
+    return;
   gp_Pnt aFirstPoint, aSecondPoint, aCenterPoint;
   bool aReadyToDisplay = readyToDisplay(myConstraint, plane(),
                                         aFirstPoint, aSecondPoint, aCenterPoint);