]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Optimization of selection code
authorvsv <vitaly.smetannikov@opencascade.com>
Wed, 22 Oct 2014 12:17:38 +0000 (16:17 +0400)
committervsv <vitaly.smetannikov@opencascade.com>
Wed, 22 Oct 2014 12:17:38 +0000 (16:17 +0400)
src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp

index 785d6b6f26320df71932d9699d12333997286c4b..d68309a4f6defcdc2d0790500e3c8b8f69d5961f 100644 (file)
@@ -133,6 +133,7 @@ bool ModuleBase_WidgetShapeSelector::storeValue() const
     if (aBody) {
       aSelect->setValue(aBody, myShape);
       updateObject(myFeature);
+      return true;
     }
   } else {
     boost::shared_ptr<ModelAPI_AttributeReference> aRef = 
@@ -142,9 +143,10 @@ bool ModuleBase_WidgetShapeSelector::storeValue() const
     if (!(aObject && aObject->isSame(mySelectedObject))) {
       aRef->setValue(mySelectedObject);
       updateObject(myFeature);
+      return true;
     }
   }
-  return true;
+  return false;
 }
 
 //********************************************************************