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(); }