]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/notebook.cpp
New code for Update() under GTK 2.0. Added
[wxWidgets.git] / src / univ / notebook.cpp
index c90d042c3972158c88c8ae86860fdef175c5c3e5..d3d4b29fe1b982e757a0f35b69aa6662747fc783 100644 (file)
@@ -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 <Hansvl@softhome.net> who
+    // points out that UpdateSpinBtn should always be called,
+    // to ensure m_lastVisible is up to date.
+    // if ( HasSpinBtn() )
     {
         UpdateSpinBtn();
     }