From 97f663fee3c4b3449ea6216045ae8564ef90f698 Mon Sep 17 00:00:00 2001 From: vsv Date: Tue, 21 Aug 2018 18:06:47 +0300 Subject: [PATCH] Fix for formula definition with '=' in an integer widget --- src/ModuleBase/ModuleBase_WidgetDoubleValue.cpp | 2 +- src/ModuleBase/ModuleBase_WidgetIntValue.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.39.2