From: vsv Date: Wed, 22 Oct 2014 12:17:38 +0000 (+0400) Subject: Optimization of selection code X-Git-Tag: V_0.5~82^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f739bfa116c5f4f2045892084ebe7ed7692f33f0;p=modules%2Fshaper.git Optimization of selection code --- diff --git a/src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp b/src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp index 785d6b6f2..d68309a4f 100644 --- a/src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetShapeSelector.cpp @@ -133,6 +133,7 @@ bool ModuleBase_WidgetShapeSelector::storeValue() const if (aBody) { aSelect->setValue(aBody, myShape); updateObject(myFeature); + return true; } } else { boost::shared_ptr 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; } //********************************************************************