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
This commit is contained in:
@@ -304,7 +304,7 @@ class ParamFont(PPanel):
|
|||||||
except KeyError: error = True; wx.LogError('Invalid style specification')
|
except KeyError: error = True; wx.LogError('Invalid style specification')
|
||||||
try: weight = fontWeightsXml2wx[self.value[3]]
|
try: weight = fontWeightsXml2wx[self.value[3]]
|
||||||
except KeyError: error = True; wx.LogError('Invalid weight specification')
|
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')
|
except ValueError: error = True; wx.LogError('Invalid underlined flag specification')
|
||||||
face = self.value[5]
|
face = self.value[5]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
|
Reference in New Issue
Block a user