From 9fbbdc7b3050d1a69384cd5e1d14a3ba27441d0b Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 21 Apr 2016 16:12:32 +0300 Subject: [PATCH] #1404 Random crash with Shaper: correction for coincidence constraint. --- src/SketcherPrs/SketcherPrs_Coincident.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } -- 2.39.2