fixed wxMac's wxListCtrl::SetColumnWidth(-1, ...) to really set width for every column

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2008-04-20 20:28:27 +00:00
parent 4e42bc75f6
commit b38e4d6f23

View File

@@ -1061,12 +1061,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