Salome HOME
Issue #1440 Crash when edit box with parameter: height of the box using parameter...
authornds <nds@opencascade.com>
Tue, 26 Apr 2016 07:16:27 +0000 (10:16 +0300)
committernds <nds@opencascade.com>
Tue, 26 Apr 2016 07:16:27 +0000 (10:16 +0300)
src/PythonAddons/macros/box/feature.py

index 6341e432ac8830fcad815ec562058f0ccc85dd33..8651ac5ea308677bc68b8edc9261fdc93ee2aef3 100644 (file)
@@ -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)