From 8620d77bc025c2d925a65989d6f1f0561e211d00 Mon Sep 17 00:00:00 2001 From: JAndersM Date: Mon, 7 Dec 2020 19:51:29 +0100 Subject: [PATCH] Update task_scale.py The changes solves the Ticket #3691 - Bug in draft scale. Only integers work --- src/Mod/Draft/drafttaskpanels/task_scale.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/Draft/drafttaskpanels/task_scale.py b/src/Mod/Draft/drafttaskpanels/task_scale.py index 7d6e93b289..a19c75fc7e 100644 --- a/src/Mod/Draft/drafttaskpanels/task_scale.py +++ b/src/Mod/Draft/drafttaskpanels/task_scale.py @@ -53,21 +53,21 @@ class ScaleTaskPanel: layout.addWidget(self.xLabel, 0, 0, 1, 1) self.xValue = QtGui.QDoubleSpinBox() self.xValue.setRange(0.0000001, 1000000.0) - self.xValue.setDecimals(Draft.getParam("precision")) + self.xValue.setDecimals(Draft.precision()) self.xValue.setValue(1) layout.addWidget(self.xValue,0,1,1,1) self.yLabel = QtGui.QLabel() layout.addWidget(self.yLabel,1,0,1,1) self.yValue = QtGui.QDoubleSpinBox() self.yValue.setRange(.0000001,1000000.0) - self.yValue.setDecimals(Draft.getParam("precision")) + self.yValue.setDecimals(Draft.precision()) self.yValue.setValue(1) layout.addWidget(self.yValue,1,1,1,1) self.zLabel = QtGui.QLabel() layout.addWidget(self.zLabel,2,0,1,1) self.zValue = QtGui.QDoubleSpinBox() self.zValue.setRange(.0000001,1000000.0) - self.zValue.setDecimals(Draft.getParam("precision")) + self.zValue.setDecimals(Draft.precision()) self.zValue.setValue(1) layout.addWidget(self.zValue,2,1,1,1) self.lock = QtGui.QCheckBox()