]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/listctrl/listtest.cpp
update from gtk/changes.txt to changes.txt (sic...)
[wxWidgets.git] / samples / listctrl / listtest.cpp
index c1fd9dc512a859a5ef59b6ad80fc71a6bd775144..7b196adf035514b9df1732ab6aac2547d65206c3 100644 (file)
@@ -631,7 +631,10 @@ void MyListCtrl::OnColClick(wxListEvent& event)
 void MyListCtrl::OnColRightClick(wxListEvent& event)
 {
     int col = event.GetColumn();
-    SetColumnImage(col, -1);
+    if ( col != -1 )
+    {
+        SetColumnImage(col, -1);
+    }
 
     wxLogMessage( wxT("OnColumnRightClick at %d."), event.GetColumn() );
 }