]> git.saurik.com Git - wxWidgets.git/commitdiff
bug fix to the recent wxConvertFromMSW change
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 14 Jul 2001 21:18:23 +0000 (21:18 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 14 Jul 2001 21:18:23 +0000 (21:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/listctrl.cpp

index b1f4aa0408a3fc70b9a6e78e19e10a6fadb245b9..73a2997beafabda9075187f9da4671a425e4cd6d 100644 (file)
@@ -669,7 +669,8 @@ bool wxListCtrl::GetItem(wxListItem& info) const
     }
     else
     {
-        wxConvertFromMSWListItem(GetHwnd(), info, lvItem);
+        // give NULL as hwnd as we already have everything we need
+        wxConvertFromMSWListItem(NULL, info, lvItem);
     }
 
     if (lvItem.pszText)