diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index 7cf49aefa4..b8249e9fbf 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -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();