mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
fix for negative number entry
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user