From f0eafd92c62014f9ade34e1ddaebe81983557a88 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 21 Apr 2016 15:54:08 +0300 Subject: [PATCH] #1404 Random crash with Shaper: AIS presentations: correction for coincidence presentations. --- src/SketcherPrs/SketcherPrs_Coincident.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2