]> git.saurik.com Git - wxWidgets.git/commitdiff
fix an unused variable warning in release build
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 30 Nov 2007 14:41:05 +0000 (14:41 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 30 Nov 2007 14:41:05 +0000 (14:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/listctrl.cpp

index 6f22017cff8a0cdf5439b3ff3fdad7a62b66a45b..1ba0251cdf195fb76f1b1c5b3b0307ce33ffcf04 100644 (file)
@@ -2821,8 +2821,10 @@ void wxListCtrl::OnPaint(wxPaintEvent& event)
 
             int numCols = GetColumnCount();
             int* indexArray = new int[numCols];
-            BOOL rv = ListView_GetColumnOrderArray( GetHwnd(), numCols, indexArray );
-            wxASSERT_MSG( rv == TRUE, _T("invalid column index array in OnPaint()") );
+            if ( !ListView_GetColumnOrderArray( GetHwnd(), numCols, indexArray) )
+            {
+                wxFAIL_MSG( _T("invalid column index array in OnPaint()") );
+            }
 
             int x = itemRect.GetX();
             for (int col = 0; col < numCols; col++)