]> git.saurik.com Git - wxWidgets.git/commitdiff
fixes bug when closing mdi frame with >5 children
authorChris Elliott <biol75@york.ac.uk>
Mon, 16 Aug 2004 11:18:04 +0000 (11:18 +0000)
committerChris Elliott <biol75@york.ac.uk>
Mon, 16 Aug 2004 11:18:04 +0000 (11:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/univ/notebook.cpp

index c515179ccdd66fb680fd91d14d5bd7815e525a0b..6f15388aa66761a1b2524dc49b6ee8c1c62e320e 100644 (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();
         }