X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..abb69c6c82d61cf18f14270650a68896a3d8ed47:/wxPython/demo/GridStdEdRend.py diff --git a/wxPython/demo/GridStdEdRend.py b/wxPython/demo/GridStdEdRend.py index 5835a8227e..b4a3db3c36 100644 --- a/wxPython/demo/GridStdEdRend.py +++ b/wxPython/demo/GridStdEdRend.py @@ -142,11 +142,11 @@ Renderers used together. attr.SetReadOnly(true) attr.SetAlignment(wxRIGHT, -1) self.SetColAttr(renCol, attr) + attr.IncRef() self.SetColAttr(edCol, attr) # There is a bug in wxGTK for this method... - if wxPlatform != '__WXGTK__': - self.AutoSizeColumns(true) + self.AutoSizeColumns(true) self.AutoSizeRows(true) EVT_GRID_CELL_LEFT_DCLICK(self, self.OnLeftDClick)