From da1158bb912c4aef45c07ce2de5b69ea2773f65e Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Mon, 12 Aug 2002 21:41:45 +0000 Subject: [PATCH] 'if' commented out by JACS on behalf of Hans Van Leemputten who points out that UpdateSpinBtn should always be called, to ensure m_lastVisible is up to date. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/univ/notebook.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/univ/notebook.cpp b/src/univ/notebook.cpp index c90d042c39..d3d4b29fe1 100644 --- a/src/univ/notebook.cpp +++ b/src/univ/notebook.cpp @@ -382,7 +382,11 @@ wxNotebookPage *wxNotebook::DoRemovePage(int nPage) m_images.RemoveAt(nPage); // the spin button might not be needed any more - if ( HasSpinBtn() ) + // 2002-08-12 'if' commented out by JACS on behalf + // of Hans Van Leemputten who + // points out that UpdateSpinBtn should always be called, + // to ensure m_lastVisible is up to date. + // if ( HasSpinBtn() ) { UpdateSpinBtn(); } -- 2.45.2