From 5c6feed39d719b6af02a38b5b49a4e1e8b0318b1 Mon Sep 17 00:00:00 2001 From: vsv Date: Mon, 17 Jun 2019 18:28:12 +0300 Subject: [PATCH] Prevent crash on sketcher plane change --- src/SketcherPrs/SketcherPrs_PositionMgr.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SketcherPrs/SketcherPrs_PositionMgr.cpp b/src/SketcherPrs/SketcherPrs_PositionMgr.cpp index d98ffa0ac..0a546233d 100644 --- a/src/SketcherPrs/SketcherPrs_PositionMgr.cpp +++ b/src/SketcherPrs/SketcherPrs_PositionMgr.cpp @@ -361,6 +361,8 @@ gp_Pnt SketcherPrs_PositionMgr::getPointPosition( double theStep, GeomPointPtr thePnt) { gp_Pnt aP = thePnt->impl(); + if (!thePrs->plane().get()) + return aP; GeomDirPtr aNormal = thePrs->plane()->normal(); gp_Dir aNormDir = aNormal->impl(); -- 2.39.2