]> git.saurik.com Git - wxWidgets.git/commitdiff
no changes
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 31 Aug 2003 13:47:11 +0000 (13:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 31 Aug 2003 13:47:11 +0000 (13:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23318 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/listctrl.cpp

index 4b38fc9819da39c8f74df59bbb7975b640d1d8b2..f5cf108c8e7525682101d4cf3048dcfa820455e4 100644 (file)
@@ -1506,16 +1506,17 @@ long wxListCtrl::InsertItem(wxListItem& info)
         if (info.m_mask & wxLIST_MASK_DATA)
             data->lParam = info.m_data;
 
-    // check whether it has any custom attributes
-    if ( info.HasAttributes() )
-    {
+        // check whether it has any custom attributes
+        if ( info.HasAttributes() )
+        {
             // take copy of attributes
             data->attr = new wxListItemAttr(*info.GetAttributes());
-    }
+        }
     };
 
     long rv = ListView_InsertItem(GetHwnd(), & item);
-    m_count += 1;
+
+    m_count++;
     wxASSERT_MSG( m_count == ListView_GetItemCount(GetHwnd()),
                   wxT("m_count should match ListView_GetItemCount"));