Skip to content

Commit

Permalink
When refreshing the pathToolController ui, use UserStrings and not ju…
Browse files Browse the repository at this point in the history
…st plain values.

Fixes Symptom: If I open the PathToolController, Press "Edit Local Copy..." and then "Ok" the units for the feedrates were gone.
  • Loading branch information
Itai Nahshon committed Jul 14, 2017
1 parent aa07c77 commit 2ba4bfb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Mod/Path/PathScripts/PathToolController.py
Expand Up @@ -314,10 +314,10 @@ def getFields(self):
def setFields(self):
self.form.tcoName.setText(self.obj.Label)
self.form.uiToolNum.setValue(self.obj.ToolNumber)
self.form.vertFeed.setText(str(self.obj.VertFeed.Value))
self.form.horizFeed.setText(str(self.obj.HorizFeed.Value))
self.form.vertRapid.setText(str(self.obj.VertRapid.Value))
self.form.horizRapid.setText(str(self.obj.HorizRapid.Value))
self.form.vertFeed.setText(self.obj.VertFeed.UserString)
self.form.horizFeed.setText(self.obj.HorizFeed.UserString)
self.form.vertRapid.setText(self.obj.VertRapid.UserString)
self.form.horizRapid.setText(self.obj.HorizRapid.UserString)

self.form.spindleSpeed.setValue(self.obj.SpindleSpeed)

Expand Down

0 comments on commit 2ba4bfb

Please sign in to comment.