From: nds Date: Tue, 26 Apr 2016 07:16:27 +0000 (+0300) Subject: Issue #1440 Crash when edit box with parameter: height of the box using parameter... X-Git-Tag: V_2.3.0~107 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=00c9089cb6918a35da71778d2c32f663506e1529;p=modules%2Fshaper.git Issue #1440 Crash when edit box with parameter: height of the box using parameter text --- diff --git a/src/PythonAddons/macros/box/feature.py b/src/PythonAddons/macros/box/feature.py index 6341e432a..8651ac5ea 100644 --- a/src/PythonAddons/macros/box/feature.py +++ b/src/PythonAddons/macros/box/feature.py @@ -100,7 +100,7 @@ class BoxFeature(model.Feature): else: self.base.setText(self.width, width_text) - if length_text != "": + if length_text == "": self.base.setValue(self.length, length) else: self.base.setText(self.length, length_text)