fix for negative number entry

This commit is contained in:
Eric Poulsen
2020-12-05 16:17:37 -08:00
parent 06d08743a2
commit 5da1fd2d89

View File

@@ -848,7 +848,7 @@ class IntCtrl(wx.TextCtrl):
# So, to ensure consistency and to prevent spurious ValueErrors,
# we make the following test, and react accordingly:
#
if value == '':
if value == '' or value == '-':
if not self.IsNoneAllowed():
return 0
else: