X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2a74d1415bbea79a35a56c7a48d8e8a5edd54a8c..a4353f07c6b37712634d4b2d86527b647a08044f:/wxPython/src/msw/sizers.py diff --git a/wxPython/src/msw/sizers.py b/wxPython/src/msw/sizers.py index f3f88dd460..88d328f1d6 100644 --- a/wxPython/src/msw/sizers.py +++ b/wxPython/src/msw/sizers.py @@ -182,6 +182,7 @@ class wxSizerPtr(wxObjectPtr): return val def Fit(self, *_args, **_kwargs): val = apply(sizersc.wxSizer_Fit,(self,) + _args, _kwargs) + if val: val = wxSizePtr(val) ; val.thisown = 1 return val def FitInside(self, *_args, **_kwargs): val = apply(sizersc.wxSizer_FitInside,(self,) + _args, _kwargs)