From: Chris Elliott Date: Mon, 16 Aug 2004 11:18:04 +0000 (+0000) Subject: fixes bug when closing mdi frame with >5 children X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b039ef1d48fcc5b2a68374a8618c71ebf9ccfec8 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 --- diff --git a/src/univ/notebook.cpp b/src/univ/notebook.cpp index c515179ccd..6f15388aa6 100644 --- a/src/univ/notebook.cpp +++ b/src/univ/notebook.cpp @@ -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(); }