]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/treebase.cpp
Don't use the window position as the x offset when painting the full
[wxWidgets.git] / src / common / treebase.cpp
index 798ed50d4720790ef77231266526db0af6685ce1..bf992729d44a2538fef190dc122a63b8fbfd3770 100644 (file)
@@ -121,7 +121,7 @@ static void wxGetBestTreeSize(const wxTreeCtrlBase* treeCtrl, const wxTreeItemId
     wxTreeItemIdValue cookie;
     for ( wxTreeItemId item = treeCtrl->GetFirstChild(id, cookie);
           item.IsOk();
-          item = treeCtrl->GetNextChild(item, cookie) )
+          item = treeCtrl->GetNextChild(id, cookie) )
     {
         wxGetBestTreeSize(treeCtrl, item, size);
     }