]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
#1404 Random crash with Shaper: AIS presentations: correction for coincidence present...
authornds <nds@opencascade.com>
Thu, 21 Apr 2016 12:54:08 +0000 (15:54 +0300)
committernds <nds@opencascade.com>
Thu, 21 Apr 2016 12:54:37 +0000 (15:54 +0300)
src/SketcherPrs/SketcherPrs_Coincident.cpp

index d8cb88cb21b3d905873a5a68d87a12172459faf8..a2931fa51f26ffe664103ac88be206294f3ea7e7 100644 (file)
@@ -56,7 +56,7 @@ bool SketcherPrs_Coincident::readyToDisplay(ModelAPI_Feature* theConstraint,
   // Get point of the presentation
   std::shared_ptr<GeomAPI_Pnt2d> 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)