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
This commit is contained in:
Vadim Zeitlin
2008-12-24 00:35:53 +00:00
parent 1808bb47b9
commit 636a53b35f

View File

@@ -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 )
{