From: nds Date: Tue, 26 Apr 2016 07:39:12 +0000 (+0300) Subject: Coincidence correction concerning the next regression: line to be coincident to anoth... X-Git-Tag: V_2.3.0~106 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=54722f01656c4e5c67a3cdc04aa57ef614b6a446;p=modules%2Fshaper.git Coincidence correction concerning the next regression: line to be coincident to another line, coincidence is not visible --- 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; }