]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/treectlg.cpp
A couple more tests.
[wxWidgets.git] / src / generic / treectlg.cpp
index 32498c50937bf35e4bb504edad39002de91fda6a..71d424699992e6b4719dba84f30e250646507006 100644 (file)
@@ -2231,10 +2231,9 @@ void wxGenericTreeCtrl::PaintItem(wxGenericTreeItem *item, wxDC& dc)
 
     if ( HasFlag(wxTR_FULL_ROW_HIGHLIGHT) )
     {
-        int x, y, w, h;
-
-        DoGetPosition(&x, &y);
-        DoGetSize(&w, &h);
+        int x, w, h;
+        x=0;
+        GetVirtualSize(&w, &h);
         dc.DrawRectangle(x, item->GetY()+offset, w, total_h-offset);
     }
     else