From: vsv Date: Tue, 21 Aug 2018 15:06:47 +0000 (+0300) Subject: Fix for formula definition with '=' in an integer widget X-Git-Tag: SHAPER_V9_1_0RC1~42 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=97f663fee3c4b3449ea6216045ae8564ef90f698;p=modules%2Fshaper.git Fix for formula definition with '=' in an integer widget --- diff --git a/src/ModuleBase/ModuleBase_WidgetDoubleValue.cpp b/src/ModuleBase/ModuleBase_WidgetDoubleValue.cpp index 2b8325115..90e44ba7c 100644 --- a/src/ModuleBase/ModuleBase_WidgetDoubleValue.cpp +++ b/src/ModuleBase/ModuleBase_WidgetDoubleValue.cpp @@ -169,7 +169,7 @@ bool ModuleBase_WidgetDoubleValue::storeValueCustom() } else { ModuleBase_Tools::editParameter(myParameter, aText); } - aText = aText.split('=').at(0); // +"="; + aText = aText.split('=').at(0); } else if (myParameter.get()){ // Nullyfy the parameter reference without deletion of the created myParameter = FeaturePtr(); diff --git a/src/ModuleBase/ModuleBase_WidgetIntValue.cpp b/src/ModuleBase/ModuleBase_WidgetIntValue.cpp index 095f123c7..72622070a 100644 --- a/src/ModuleBase/ModuleBase_WidgetIntValue.cpp +++ b/src/ModuleBase/ModuleBase_WidgetIntValue.cpp @@ -157,7 +157,7 @@ bool ModuleBase_WidgetIntValue::storeValueCustom() } else { ModuleBase_Tools::editParameter(myParameter, aText); } - aText = aText.split('=').at(0) + "="; + aText = aText.split('=').at(0); } else if (myParameter.get()) { // Nullyfy the parameter reference without deletion of the created myParameter = FeaturePtr();