Fix crash in wxDataViewCtrl::UpdateColWidths().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69003 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4381,12 +4381,11 @@ void wxDataViewCtrl::UpdateColWidths()
|
|||||||
if ( !m_headerArea )
|
if ( !m_headerArea )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for ( wxVector<int>::const_iterator i = m_colsBestWidths.begin();
|
const unsigned len = m_colsBestWidths.size();
|
||||||
i != m_colsBestWidths.end();
|
for ( unsigned i = 0; i < len; i++ )
|
||||||
++i )
|
|
||||||
{
|
{
|
||||||
if ( m_colsBestWidths[*i] == 0 )
|
if ( m_colsBestWidths[i] == 0 )
|
||||||
m_headerArea->UpdateColumn(*i);
|
m_headerArea->UpdateColumn(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user