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:
@@ -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 )
|
||||
{
|
||||
|
Reference in New Issue
Block a user