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();