fix an unused variable warning in release build

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-11-30 14:41:05 +00:00
parent 9a8864cad7
commit 7a8dce715f

View 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++)