]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listctrl.cpp
added new text event macros description
[wxWidgets.git] / src / msw / listctrl.cpp
index 156485d6d5cf636310e7dfb9d92548250ff93454..1196685fe8506f99ad660b9d43176a5734a05e96 100644 (file)
@@ -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;