From: vsv Date: Mon, 17 Jun 2019 15:28:12 +0000 (+0300) Subject: Prevent crash on sketcher plane change X-Git-Tag: VEDF2019Lot4~110 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5c6feed39d719b6af02a38b5b49a4e1e8b0318b1;p=modules%2Fshaper.git Prevent crash on sketcher plane change --- 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();