From: nds Date: Thu, 3 Nov 2016 08:44:56 +0000 (+0300) Subject: #1802 Crash when I create a circle on projected axis X-Git-Tag: V_2.6.0~124 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b9e0bc62b8d67c3f82e4feb583e4e3b9f7249202;p=modules%2Fshaper.git #1802 Crash when I create a circle on projected axis --- diff --git a/src/PartSet/PartSet_Tools.cpp b/src/PartSet/PartSet_Tools.cpp index 5e526d36a..7a420b781 100755 --- a/src/PartSet/PartSet_Tools.cpp +++ b/src/PartSet/PartSet_Tools.cpp @@ -627,7 +627,8 @@ ResultPtr PartSet_Tools::findExternalEdge(CompositeFeaturePtr theSketch, std::sh FeaturePtr aFeature = theSketch->subFeature(i); std::shared_ptr aSketchFea = std::dynamic_pointer_cast(aFeature); - if (aSketchFea) { + // not displayed result of feature projection should not be returned as external edge + if (aSketchFea && aSketchFea->canBeDisplayed()) { if (aSketchFea->isExternal()) { std::list aResults = aSketchFea->results(); std::list::const_iterator aIt;