Patch file attached to ticket + also posted here:proteus wrote:Description
After i open the PathHelix UI in the input field "Step in Z" the value is multiplied by 10. In the input filed "Step in Radius" is always the diameter from the tooltable. In the attachment is a patch for this issue. With this patch now the previous_value is propper working.
Steps To Reproduce
double klick on PathHelix icon on the left side of the tree.
Additional Information
OS: "openSUSE Leap 42.1 (x86_64)"
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.9661 (Git)
Build type: Release
Branch: master
Hash: 5b5189a8d69378e4216062bab6932978ce303be7
Python version: 2.7.12
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.9.1.oce-0.18-dev
Code: Select all
From a33f71c8b3a76374db2c4c8e731ab9fe3630f7c2 Mon, 16 Jan 2017 12:36:57 +0100
From: Michael Kruschinsky <mk@mysmk.de>
Date: Mon, 16 Jan 2017 12:06:38 +0100
Subject: [PATCH] 0003-Add-PathHelix_Fix_for_x10_input_field_issue_017
Signed-off-by: Michael Kruschinsky <mk@mysmk.de>
diff --git a/src/Mod/Path/PathScripts/PathHelix.py b/src/Mod/Path/PathScripts/PathHelix.py
index db8ecd7..38ac501 100644
--- a/src/Mod/Path/PathScripts/PathHelix.py
+++ b/src/Mod/Path/PathScripts/PathHelix.py
@@ -587,7 +587,9 @@
label = QtGui.QLabel(labelstring)
label.setToolTip(self.obj.getDocumentationOfProperty(property))
- widget.setText(str(getattr(self.obj, property)))
+ # Fix for x10: replace dot with comma.
+ # it's the first fix, i think there was a better one, but it works.
+ widget.setText(str(getattr(self.obj, property)).replace('.', ','))
widget.setToolTip(self.obj.getDocumentationOfProperty(property))
if max: