From: Vadim Zeitlin Date: Wed, 24 Dec 2008 00:35:53 +0000 (+0000) Subject: correct the direction of the comparison between the number of columns/rows and the... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/636a53b35fb8ba4a01651563c60e2cf1df2fd637 correct the direction of the comparison between the number of columns/rows and the number of items (#10294) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/sizer.cpp b/src/common/sizer.cpp index 939150a121..98990a2ee1 100644 --- a/src/common/sizer.cpp +++ b/src/common/sizer.cpp @@ -1333,7 +1333,7 @@ int wxGridSizer::CalcRowsCols(int& nrows, int& ncols) const ncols = m_cols; nrows = m_rows; - wxASSERT_MSG( ncols*nrows <= nitems, "too many items in grid sizer" ); + wxASSERT_MSG( ncols*nrows >= nitems, "too many items in grid sizer" ); } else if ( m_cols ) {