From: vsv Date: Tue, 28 Aug 2018 12:08:05 +0000 (+0300) Subject: Fix for case of selection of a plane feature which leads to re-selection of plane... X-Git-Tag: SHAPER_V9_1_0RC1~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=576528fad2dd34f35eb3af890286751709d844ce;p=modules%2Fshaper.git Fix for case of selection of a plane feature which leads to re-selection of plane result (in partition operation) --- diff --git a/src/Model/Model_AttributeSelection.cpp b/src/Model/Model_AttributeSelection.cpp index b81952bd5..d93f02ed3 100644 --- a/src/Model/Model_AttributeSelection.cpp +++ b/src/Model/Model_AttributeSelection.cpp @@ -492,10 +492,10 @@ FeaturePtr Model_AttributeSelection::contextFeature() { return std::dynamic_pointer_cast(myRef.value()); } ObjectPtr Model_AttributeSelection::contextObject() { - ResultPtr aRes = context(); + FeaturePtr aRes = contextFeature(); if (aRes.get()) return aRes; - return contextFeature(); + return context(); }