Removed unneeded column width change to match msw behavior.
This commit is contained in:
parent
7dd65abaf7
commit
9301692b68
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user