Skip to content

Commit

Permalink
Re #4303 fix formatting of scaling factors
Browse files Browse the repository at this point in the history
  • Loading branch information
mdoucet committed Feb 7, 2012
1 parent 6a752ee commit ab736a9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ def get_scale(self):
return self._scale

def set_scale(self, scale):
self._edit_ctrl.setText("%-6.3g" % scale)
value_as_string = "%-6.3g" % scale
self._edit_ctrl.setText(value_as_string.strip())
self._scale = scale

def set_user_data(self, data):
Expand Down

0 comments on commit ab736a9

Please sign in to comment.