From b9e0bc62b8d67c3f82e4feb583e4e3b9f7249202 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 3 Nov 2016 11:44:56 +0300 Subject: [PATCH] #1802 Crash when I create a circle on projected axis --- src/PartSet/PartSet_Tools.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.2