]> git.saurik.com Git - wxWidgets.git/commitdiff
wxTinderbox warning fix.
authorWłodzimierz Skiba <abx@abx.art.pl>
Wed, 15 Mar 2006 10:03:44 +0000 (10:03 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Wed, 15 Mar 2006 10:03:44 +0000 (10:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/listctrl.cpp

index e680736293876948a0ea51aaf2642909a5f18f78..b4d348ac46fdc359052faa0cb5cac9f577ce8ef4 100644 (file)
@@ -2491,7 +2491,7 @@ static void HandleItemPaint(LPNMLVCUSTOMDRAW pLVCD, HFONT hfont)
 
     // same thing for CDIS_FOCUS (except simpler as there is only one of them)
     if ( ::GetFocus() == hwndList &&
-            ListView_GetNextItem(hwndList, -1, LVNI_FOCUSED) == item )
+            ListView_GetNextItem(hwndList, (WPARAM)-1, LVNI_FOCUSED) == item )
     {
         nmcd.uItemState |= CDIS_FOCUS;
     }