From: nds Date: Thu, 21 Apr 2016 12:54:08 +0000 (+0300) Subject: #1404 Random crash with Shaper: AIS presentations: correction for coincidence present... X-Git-Tag: V_2.3.0~152 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f0eafd92c62014f9ade34e1ddaebe81983557a88;p=modules%2Fshaper.git #1404 Random crash with Shaper: AIS presentations: correction for coincidence presentations. --- diff --git a/src/SketcherPrs/SketcherPrs_Coincident.cpp b/src/SketcherPrs/SketcherPrs_Coincident.cpp index d8cb88cb2..a2931fa51 100644 --- a/src/SketcherPrs/SketcherPrs_Coincident.cpp +++ b/src/SketcherPrs/SketcherPrs_Coincident.cpp @@ -56,7 +56,7 @@ 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() == NULL) { + if (aPnt.get()) { aPnt = SketcherPrs_Tools::getPoint(theConstraint, SketchPlugin_Constraint::ENTITY_B()); aReadyToDisplay = aPnt.get() != NULL; if (aReadyToDisplay)