]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for case of selection of a plane feature which leads to re-selection of plane...
authorvsv <vsv@opencascade.com>
Tue, 28 Aug 2018 12:08:05 +0000 (15:08 +0300)
committervsv <vsv@opencascade.com>
Tue, 28 Aug 2018 12:08:05 +0000 (15:08 +0300)
src/Model/Model_AttributeSelection.cpp

index b81952bd58d0d1b6188dc675235c27b9a59c054f..d93f02ed321692bde6ef69be5a1ff09ac47de9a8 100644 (file)
@@ -492,10 +492,10 @@ FeaturePtr Model_AttributeSelection::contextFeature() {
   return std::dynamic_pointer_cast<ModelAPI_Feature>(myRef.value());
 }
 ObjectPtr Model_AttributeSelection::contextObject() {
-  ResultPtr aRes = context();
+  FeaturePtr aRes = contextFeature();
   if (aRes.get())
     return aRes;
-  return contextFeature();
+  return context();
 }