X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6443de026310552cacd68a6d0318e73d14929680..f2616db56739e4962f683f59ac9e207756efe23c:/src/msw/listctrl.cpp?ds=inline diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index 156485d6d5..1196685fe8 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -1917,7 +1917,7 @@ void wxListCtrl::OnPaint(wxPaintEvent& event) dc.DrawLine(0, cy, clientSize.x, cy); } // Draw last line - if (i == (GetItemCount() - 1)) + if (i == itemCount - 1) { cy = itemRect.GetBottom(); dc.DrawLine(0, cy, clientSize.x, cy); @@ -1925,7 +1925,7 @@ void wxListCtrl::OnPaint(wxPaintEvent& event) } } } - i = (GetItemCount() - 1); + i = itemCount - 1; if (drawVRules && (i > -1)) { wxRect firstItemRect;