Remove unnecessary GetColumnCount() test in wxDataViewCtrl code

The presence of columns is already checked inside UpdateColumnSizes()
itself, so there is no need to do it before calling it too.

No real changes.
This commit is contained in:
Vadim Zeitlin
2020-04-30 16:47:27 +02:00
parent 9d4bb47050
commit f10d9e199f

View File

@@ -5272,7 +5272,7 @@ void wxDataViewCtrl::OnSize( wxSizeEvent &WXUNUSED(event) )
// Update the last column size to take all the available space. Note that
// this must be done after calling Layout() to update m_clientArea size.
if ( m_clientArea && GetColumnCount() )
if ( m_clientArea )
m_clientArea->UpdateColumnSizes();
AdjustScrollbars();