From: Vadim Zeitlin Date: Sat, 7 Feb 2004 14:31:29 +0000 (+0000) Subject: show first item added with InsertItem() correctly (part of patch 833247) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5205e26b9bc6fd6df5a817fe198b671d388f46b4?hp=461dae941dac51a523a4280d3e1800143b720305 show first item added with InsertItem() correctly (part of patch 833247) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index 3e9b5966cb..9bb556cf46 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -1565,6 +1565,9 @@ long wxListCtrl::InsertItem(wxListItem& info) { // take copy of attributes data->attr = new wxListItemAttr(*info.GetAttributes()); + + // and remember that we have some now... + m_hasAnyAttr = TRUE; } };