X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2d4b5a5e99d62f6e6fd127f8afb4e551aa9aceac..331a0b6b7aeb8b41d4ac27aeedbdca11b6f0b38e:/src/univ/notebook.cpp 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(); }