]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
[bos #38044][EDF] (2023-T3) Support for automatic reparation. Fixed an accident chang...
authorKonstantin Leontev <Konstantin.LEONTEV@opencascade.com>
Mon, 17 Jun 2024 09:34:20 +0000 (10:34 +0100)
committerKonstantin Leontev <Konstantin.LEONTEV@opencascade.com>
Mon, 17 Jun 2024 09:34:20 +0000 (10:34 +0100)
src/RepairGUIAdv/geomrepairadv_common.py

index 83c93379d275abac446ce4d413988e10fe1319f5..7ecc59c41eeaf2404d56f634968ecd97b9ab6198 100644 (file)
@@ -60,6 +60,8 @@ class DlgRef_1Spin_QTD(Ui_DlgRef_1Spin_QTD, QWidget):
         self.setupUi(self)
 
         self.TextLabel1.setText(title)
-        self.SpinBox_DX.setValue(default_value)
+        # Setting deciamals must be in the first place, because from QDoubleSpinBox docs:
+        # the maximum, minimum and value might change as a result of changing this property.
         self.SpinBox_DX.setDecimals(decimals)
         self.SpinBox_DX.setMaximum(max_value)
+        self.SpinBox_DX.setValue(default_value)