]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/listctrl_mac.cpp
fixed wxMac's wxListCtrl::SetColumnWidth(-1, ...) to really set width for every column
[wxWidgets.git] / src / mac / carbon / listctrl_mac.cpp
index 9bc3cb2247a7a2e8bbbf5268b103b1f49a8e5c7d..21b7bd0b8475d5e5268a07c39ad623636b2cb94c 100644 (file)
@@ -1056,12 +1056,12 @@ bool wxListCtrl::SetColumnWidth(int col, int width)
             for (int column = 0; column < GetColumnCount(); column++)
             {
                 wxListItem colInfo;
-                GetColumn(col, colInfo);
+                GetColumn(column, colInfo);
 
                 colInfo.SetWidth(width);
-                SetColumn(col, colInfo);
+                SetColumn(column, colInfo);
 
-                m_dbImpl->SetColumnWidth(col, mywidth);
+                m_dbImpl->SetColumnWidth(column, mywidth);
             }
         }
         else