From 54722f01656c4e5c67a3cdc04aa57ef614b6a446 Mon Sep 17 00:00:00 2001 From: nds Date: Tue, 26 Apr 2016 10:39:12 +0300 Subject: [PATCH] Coincidence correction concerning the next regression: line to be coincident to another line, coincidence is not visible --- src/SketcherPrs/SketcherPrs_Coincident.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/SketcherPrs/SketcherPrs_Coincident.cpp b/src/SketcherPrs/SketcherPrs_Coincident.cpp index 09d58072e..2b6c57b84 100644 --- a/src/SketcherPrs/SketcherPrs_Coincident.cpp +++ b/src/SketcherPrs/SketcherPrs_Coincident.cpp @@ -56,13 +56,13 @@ bool SketcherPrs_Coincident::readyToDisplay(ModelAPI_Feature* theConstraint, // Get point of the presentation std::shared_ptr aPnt = SketcherPrs_Tools::getPoint(theConstraint, SketchPlugin_Constraint::ENTITY_A()); - if (aPnt.get()) { + if (aPnt.get() == NULL) aPnt = SketcherPrs_Tools::getPoint(theConstraint, SketchPlugin_Constraint::ENTITY_B()); - aReadyToDisplay = aPnt.get() != NULL; - if (aReadyToDisplay) { - std::shared_ptr aPoint = thePlane->to3D(aPnt->x(), aPnt->y()); - thePoint = aPoint->impl(); - } + + aReadyToDisplay = aPnt.get() != NULL; + if (aReadyToDisplay) { + std::shared_ptr aPoint = thePlane->to3D(aPnt->x(), aPnt->y()); + thePoint = aPoint->impl(); } return aReadyToDisplay; } -- 2.39.2