fixes bug when closing mdi frame with >5 children

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Chris Elliott 2004-08-16 11:18:04 +00:00
parent f5d5bd1ddc
commit b039ef1d48

View File

@ -1127,7 +1127,7 @@ void wxNotebook::UpdateSpinBtn()
}
else // all tabs are visible, we don't need spin button
{
if ( m_spinbtn )
if ( m_spinbtn && m_spinbtn -> IsShown() )
{
m_spinbtn->Hide();
}