X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8381e4cdd3afb82e4a77038b5f9abae7404b500c..bffe56c5d19df9926686722fc09ad096afb47633:/wxPython/src/gtk/sizers.py diff --git a/wxPython/src/gtk/sizers.py b/wxPython/src/gtk/sizers.py index f3f88dd460..88d328f1d6 100644 --- a/wxPython/src/gtk/sizers.py +++ b/wxPython/src/gtk/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)