Remove a duplicate OnColumnChange() call

If the width really changed, wxDataViewColumn::SetWidth() already calls
wxDataViewCtrl::OnColumnChange() (via UpdateWidth()), so it's
unnecessary to call the latter again immediately after calling the
former. And if the width didn't change, it's not necessary to call it at
all, so in either case the OnColumnChange() call can be just removed.

No real changes.
This commit is contained in:
Vadim Zeitlin
2020-01-19 03:09:29 +01:00
parent 6873dc67fb
commit 655e29ff1a

View File

@@ -402,7 +402,6 @@ private:
const unsigned col = event.GetColumn();
owner->GetColumn(col)->SetWidth(event.GetWidth());
GetOwner()->OnColumnChange(col);
}
void OnEndReorder(wxHeaderCtrlEvent& event)