]> git.saurik.com Git - wxWidgets.git/commitdiff
correct the direction of the comparison between the number of columns/rows and the...
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 24 Dec 2008 00:35:53 +0000 (00:35 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 24 Dec 2008 00:35:53 +0000 (00:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/sizer.cpp

index 939150a121ff2dae7636abf5ea88941f7fc0db47..98990a2ee106c0e5e946cfc9f9bf0b80980d2b7b 100644 (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 )
     {