workaround for an extra EVT_TEXT on wxGTK when selected text is

replaced causing an exception


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19149 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-02-07 17:52:36 +00:00
parent ee9e836596
commit db7e947f1b

View File

@@ -720,6 +720,9 @@ class wxIntCtrl(wxTextCtrl):
Conversion function used in getting the value of the control.
"""
if value == '':
if not self.IsNoneAllowed():
return 0
else:
return None
else:
try: