Fixed a bug so wxLC_VRULES works by itself.

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

View File

@@ -1904,6 +1904,8 @@ void wxListCtrl::OnPaint(wxPaintEvent& event)
int itemCount = GetItemCount(); int itemCount = GetItemCount();
int i; int i;
if (drawHRules)
{
for (i = 0; i < itemCount; i++) for (i = 0; i < itemCount; i++)
{ {
if (GetItemRect(i, itemRect)) if (GetItemRect(i, itemRect))
@@ -1921,6 +1923,7 @@ void wxListCtrl::OnPaint(wxPaintEvent& event)
} }
} }
} }
}
i = (GetItemCount() - 1); i = (GetItemCount() - 1);
if (drawVRules && (i > -1)) if (drawVRules && (i > -1))
{ {