Skip to content

Commit

Permalink
Removed unneeded column width change to match msw behavior.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartenBent committed Feb 6, 2016
1 parent 7dd65ab commit 9301692
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/generic/listctrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 9301692

Please sign in to comment.