]> git.saurik.com Git - wxWidgets.git/commitdiff
Invalidate wxGrid best size when its associated table changes.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 22 Dec 2012 02:34:49 +0000 (02:34 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 22 Dec 2012 02:34:49 +0000 (02:34 +0000)
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

src/generic/grid.cpp

index 3aef6989b0dd922bf844022d411a7ea9b15ca2e0..6e276fe316a79e83aaa687a1b9bb39b158426541 100644 (file)
@@ -2414,6 +2414,8 @@ wxGrid::SetTable(wxGridTableBase *table,
         m_created = true;
     }
 
+    InvalidateBestSize();
+
     return m_created;
 }