]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/treectrl.cpp
Cured some Latex problems; fixed i declaration; fixed filedlg.cpp
[wxWidgets.git] / src / msw / treectrl.cpp
index 577946bc0b925ae2ff0f44d9d394c6e4ff3ae1b2..f174a3d0212571b491384b8dc96132f132adb907 100644 (file)
@@ -463,11 +463,11 @@ wxTreeItemId wxTreeCtrl::GetLastChild(const wxTreeItemId& item) const
     long cookie;
 
     wxTreeItemId childLast,
     long cookie;
 
     wxTreeItemId childLast,
-    child = GetFirstChild(last, cookie);
+    child = GetFirstChild(item, cookie);
     while ( child.IsOk() )
     {
         childLast = child;
     while ( child.IsOk() )
     {
         childLast = child;
-        child = GetNextChild(last, cookie);
+        child = GetNextChild(item, cookie);
     }
 
     return childLast;
     }
 
     return childLast;