From 2165ad93a2fc73d74d933570e095191281b9045f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 29 Jan 1999 12:49:08 +0000 Subject: [PATCH] compile fix (still not tested) for GetLastChild() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/treectrl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msw/treectrl.cpp b/src/msw/treectrl.cpp index 577946bc0b..f174a3d021 100644 --- a/src/msw/treectrl.cpp +++ b/src/msw/treectrl.cpp @@ -463,11 +463,11 @@ wxTreeItemId wxTreeCtrl::GetLastChild(const wxTreeItemId& item) const long cookie; wxTreeItemId childLast, - child = GetFirstChild(last, cookie); + child = GetFirstChild(item, cookie); while ( child.IsOk() ) { childLast = child; - child = GetNextChild(last, cookie); + child = GetNextChild(item, cookie); } return childLast;