X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9416aa89ca06d0fb20b1002e026d2c7ac7aa6a17..6dc34ebbd8f787eb42018df5b5fb938c1c7390aa:/wxPython/src/msw/cmndlgs.py diff --git a/wxPython/src/msw/cmndlgs.py b/wxPython/src/msw/cmndlgs.py index cbbb523526..05e508a769 100644 --- a/wxPython/src/msw/cmndlgs.py +++ b/wxPython/src/msw/cmndlgs.py @@ -29,7 +29,7 @@ class wxColourDataPtr(wxObjectPtr): return val def GetColour(self, *_args, **_kwargs): val = apply(cmndlgsc.wxColourData_GetColour,(self,) + _args, _kwargs) - if val: val = wxColourPtr(val) + if val: val = wxColourPtr(val) ; val.thisown = 1 return val def GetCustomColour(self, *_args, **_kwargs): val = apply(cmndlgsc.wxColourData_GetCustomColour,(self,) + _args, _kwargs) @@ -241,7 +241,7 @@ class wxFontDataPtr(wxObjectPtr): return val def GetColour(self, *_args, **_kwargs): val = apply(cmndlgsc.wxFontData_GetColour,(self,) + _args, _kwargs) - if val: val = wxColourPtr(val) + if val: val = wxColourPtr(val) ; val.thisown = 1 return val def GetChosenFont(self, *_args, **_kwargs): val = apply(cmndlgsc.wxFontData_GetChosenFont,(self,) + _args, _kwargs)