From: Vadim Zeitlin Date: Sat, 22 Dec 2012 02:34:49 +0000 (+0000) Subject: Invalidate wxGrid best size when its associated table changes. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1f89d869e72e889fe39fb74755390f1fea12623e Invalidate wxGrid best size when its associated table changes. The number of grid cells changes too, so the old best size can't be used any more. Closes #14761. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 3aef6989b0..6e276fe316 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -2414,6 +2414,8 @@ wxGrid::SetTable(wxGridTableBase *table, m_created = true; } + InvalidateBestSize(); + return m_created; }