]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
The bug about sketch sub-entities with constraints visualized after open a document.
authornds <natalia.donis@opencascade.com>
Thu, 2 Apr 2015 14:16:21 +0000 (17:16 +0300)
committernds <natalia.donis@opencascade.com>
Thu, 2 Apr 2015 14:16:21 +0000 (17:16 +0300)
src/PartSet/PartSet_SketcherMgr.cpp

index 05cf9b550dc68ebb35a7d272212e2a4899e98d69..02c599ea979264f2a9542cadeca45a7f1cc4c769 100644 (file)
@@ -792,7 +792,7 @@ bool PartSet_SketcherMgr::canDisplayObject(const ObjectPtr& theObject) const
     if (aFeature.get() != NULL) {
       std::shared_ptr<SketchPlugin_Feature> aSketchFeature =
                               std::dynamic_pointer_cast<SketchPlugin_Feature>(aFeature);
-      if (aSketchFeature.get() == NULL)
+      if (aSketchFeature.get())
         aCanDisplay = false;
     }
   }