From 5205e26b9bc6fd6df5a817fe198b671d388f46b4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 7 Feb 2004 14:31:29 +0000 Subject: [PATCH] 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 --- src/msw/listctrl.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; } }; -- 2.47.2