Skip to content

Commit

Permalink
Fix #69 - Setting of null value for number widget
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Mar 17, 2014
1 parent b38eba3 commit 8f62fc6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/roam/editorwidgets/numberwidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ def updatefromconfig(self):
self.widget.setSuffix(suffix)

def setvalue(self, value):
if not value:
value = 0.00

value = float(value)
self.widget.setValue(value)

def value(self):
Expand Down

0 comments on commit 8f62fc6

Please sign in to comment.