From: Václav Slavík Date: Sun, 20 Apr 2008 20:30:12 +0000 (+0000) Subject: fixed wxMac's wxListCtrl::SetColumnWidth(-1, ...) to really set width for every column X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ffbf7f6634ebdce1055ec21256c4fd3e3bd410c8 fixed wxMac's wxListCtrl::SetColumnWidth(-1, ...) to really set width for every column git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/listctrl_mac.cpp b/src/mac/carbon/listctrl_mac.cpp index 9bc3cb2247..21b7bd0b84 100644 --- a/src/mac/carbon/listctrl_mac.cpp +++ b/src/mac/carbon/listctrl_mac.cpp @@ -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