From: nds Date: Thu, 21 Apr 2016 13:12:32 +0000 (+0300) Subject: #1404 Random crash with Shaper: correction for coincidence constraint. X-Git-Tag: V_2.3.0~151 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9fbbdc7b3050d1a69384cd5e1d14a3ba27441d0b;p=modules%2Fshaper.git #1404 Random crash with Shaper: correction for coincidence constraint. --- diff --git a/src/SketcherPrs/SketcherPrs_Coincident.cpp b/src/SketcherPrs/SketcherPrs_Coincident.cpp index a2931fa51..c3264e793 100644 --- a/src/SketcherPrs/SketcherPrs_Coincident.cpp +++ b/src/SketcherPrs/SketcherPrs_Coincident.cpp @@ -59,8 +59,10 @@ bool SketcherPrs_Coincident::readyToDisplay(ModelAPI_Feature* theConstraint, if (aPnt.get()) { aPnt = SketcherPrs_Tools::getPoint(theConstraint, SketchPlugin_Constraint::ENTITY_B()); aReadyToDisplay = aPnt.get() != NULL; - if (aReadyToDisplay) - thePoint = aPnt->impl(); + if (aReadyToDisplay) { + std::shared_ptr aPoint = thePlane->to3D(aPnt->x(), aPnt->y()); + thePoint = aPoint->impl(); + } } return aReadyToDisplay; }