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