- wxString text = m_panes[number].arrStack.back();
- m_panes[number].arrStack.pop_back(); // also remove it from the stack
+ wxASSERT_MSG(m_panes[number].m_arrStack.GetCount() == 1,
+ "can't pop any further string");
+
+ wxString text = m_panes[number].m_arrStack.back();
+ m_panes[number].m_arrStack.pop_back(); // also remove it from the stack