Fixed the drawing of the HRules so they don't try to iterate over all

the zillions of items in a large (or virtual) list control


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2001-08-14 18:48:37 +00:00
parent 625cb8c0b1
commit 6443de0263

View File

@ -1906,7 +1906,8 @@ void wxListCtrl::OnPaint(wxPaintEvent& event)
int i;
if (drawHRules)
{
for (i = 0; i < itemCount; i++)
long top = GetTopItem();
for (i = top; i < top + GetCountPerPage() + 1; i++)
{
if (GetItemRect(i, itemRect))
{