]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
#1802 Crash when I create a circle on projected axis
authornds <nds@opencascade.com>
Thu, 3 Nov 2016 08:44:56 +0000 (11:44 +0300)
committernds <nds@opencascade.com>
Thu, 3 Nov 2016 08:55:54 +0000 (11:55 +0300)
src/PartSet/PartSet_Tools.cpp

index 5e526d36a527a2a20948f2eb01c4c5c18fe9e37e..7a420b78135eb90c238841bc6c5e9472ed996f18 100755 (executable)
@@ -627,7 +627,8 @@ ResultPtr PartSet_Tools::findExternalEdge(CompositeFeaturePtr theSketch, std::sh
     FeaturePtr aFeature = theSketch->subFeature(i);
     std::shared_ptr<SketchPlugin_Feature> aSketchFea = 
       std::dynamic_pointer_cast<SketchPlugin_Feature>(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<ResultPtr> aResults = aSketchFea->results();
         std::list<ResultPtr>::const_iterator aIt;