From 9301692b688a06320d8404f59fb895aacdf09818 Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Sat, 6 Feb 2016 17:30:29 +0100 Subject: [PATCH] Removed unneeded column width change to match msw behavior. --- src/generic/listctrl.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 068acd5a1d..a5818503fa 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -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();