detect adding too many items to a grid sizer sooner and don't crash if this happens

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-03-07 23:37:51 +00:00
parent 645706a24e
commit 8b492f67ab
2 changed files with 33 additions and 4 deletions

View File

@@ -727,6 +727,8 @@ public:
wxGridSizer( int rows, int cols, int vgap, int hgap );
wxGridSizer( int cols, int vgap = 0, int hgap = 0 );
virtual wxSizerItem *Insert(size_t index, wxSizerItem *item);
virtual void RecalcSizes();
virtual wxSize CalcMin();