From 27c390f3131699efa885a7a5a1e26cf9acb02aed Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 5 Jun 2007 21:53:10 +0000 Subject: [PATCH] Convert '0' or '1' to int before converting to bool git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wx/tools/XRCed/params.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wxPython/wx/tools/XRCed/params.py b/wxPython/wx/tools/XRCed/params.py index fd7601985c..b4c7721c96 100644 --- a/wxPython/wx/tools/XRCed/params.py +++ b/wxPython/wx/tools/XRCed/params.py @@ -304,7 +304,7 @@ class ParamFont(PPanel): except KeyError: error = True; wx.LogError('Invalid style specification') try: weight = fontWeightsXml2wx[self.value[3]] except KeyError: error = True; wx.LogError('Invalid weight specification') - try: underlined = bool(self.value[4]) + try: underlined = bool(int(self.value[4])) except ValueError: error = True; wx.LogError('Invalid underlined flag specification') face = self.value[5] except IndexError: