]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/listctrl.cpp
compilation fixes for wxUSE_TOOLBAR under MSW
[wxWidgets.git] / src / generic / listctrl.cpp
index 7c8f47927acaf5abda6ad6842e59adc68edecf65..e643ee26b5afe98583025eb530acd53738495608 100644 (file)
@@ -4167,6 +4167,9 @@ void wxListMainWindow::DeleteColumn( int col )
 
     m_dirty = TRUE;
     m_columns.DeleteNode( node );
+
+    // invalidate it as it has to be recalculated
+    m_headerWidth = 0;
 }
 
 void wxListMainWindow::DoDeleteAllItems()
@@ -4361,6 +4364,9 @@ void wxListMainWindow::InsertColumn( long col, wxListItem &item )
         {
             m_columns.Append( column );
         }
+
+        // invalidate it as it has to be recalculated
+        m_headerWidth = 0;
     }
 }