Put m_statusText.SetCount(number) before wxStatusBarBase::SetFieldsCount(number, widths) to avoid assert (a refresh is done in SetFieldsCount which
access the m_statusText array before the size is set). XQueryTree usage improved. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -186,9 +186,8 @@ wxString wxStatusBarUniv::GetStatusText(int number) const
|
||||
|
||||
void wxStatusBarUniv::SetFieldsCount(int number, const int *widths)
|
||||
{
|
||||
wxStatusBarBase::SetFieldsCount(number, widths);
|
||||
|
||||
m_statusText.SetCount(number);
|
||||
wxStatusBarBase::SetFieldsCount(number, widths);
|
||||
m_widthsAbs.Empty();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user