]> git.saurik.com Git - wxWidgets.git/commitdiff
show first item added with InsertItem() correctly (part of patch 833247)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Feb 2004 14:31:29 +0000 (14:31 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Feb 2004 14:31:29 +0000 (14:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/listctrl.cpp

index 3e9b5966cbb79c2060a07385d00085d5c01966fa..9bb556cf46ddb011e61f8ec94bae59448e96ccb3 100644 (file)
@@ -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;
         }
     };