From 576528fad2dd34f35eb3af890286751709d844ce Mon Sep 17 00:00:00 2001 From: vsv Date: Tue, 28 Aug 2018 15:08:05 +0300 Subject: [PATCH] Fix for case of selection of a plane feature which leads to re-selection of plane result (in partition operation) --- src/Model/Model_AttributeSelection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } -- 2.39.2