Removed unneeded column width change to match msw behavior.

This commit is contained in:
Maarten Bent 2016-02-06 17:30:29 +01:00
parent 7dd65abaf7
commit 9301692b68

View File

@ -3711,17 +3711,8 @@ bool wxListMainWindow::HasCheckboxes() const
bool wxListMainWindow::EnableCheckboxes(bool enable)
{
bool changed = enable != m_hasCheckboxes;
m_hasCheckboxes = enable;
if (changed) {
int cbWidth = wxRendererNative::Get().GetCheckBoxSize(this).GetWidth() + MARGIN_AFTER_CHECKBOX;
if (m_hasCheckboxes)
SetColumnWidth(0, GetColumnWidth(0) + cbWidth);
else
SetColumnWidth(0, GetColumnWidth(0) - cbWidth);
}
m_dirty = true;
m_headerWidth = 0;
Refresh();