From: nds Date: Thu, 2 Apr 2015 14:16:21 +0000 (+0300) Subject: The bug about sketch sub-entities with constraints visualized after open a document. X-Git-Tag: V_1.1.0~57^2~24 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aff9f5ff8715d9bc9bd4a780eea0a9351d44de2a;p=modules%2Fshaper.git The bug about sketch sub-entities with constraints visualized after open a document. --- diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index 05cf9b550..02c599ea9 100644 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -792,7 +792,7 @@ bool PartSet_SketcherMgr::canDisplayObject(const ObjectPtr& theObject) const if (aFeature.get() != NULL) { std::shared_ptr aSketchFeature = std::dynamic_pointer_cast(aFeature); - if (aSketchFeature.get() == NULL) + if (aSketchFeature.get()) aCanDisplay = false; } }