]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/bookctrl.cpp
documented return value of Find[Absolute]ValidPath() correctly
[wxWidgets.git] / src / common / bookctrl.cpp
index 9202c46db01e1b63c099496052489421f7e5af86..bf8a83343440d814fcd28e01348a0eb7a880554d 100644 (file)
@@ -6,7 +6,7 @@
 // Created:     19.08.03
 // RCS-ID:      $Id$
 // Copyright:   (c) 2003 Vadim Zeitlin <vadim@wxwindows.org>
-// Licence:     wxWidgets licence
+// Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
 
 // ============================================================================
@@ -130,7 +130,9 @@ wxSize wxBookCtrl::DoGetBestSize() const
 
     // convert display area to window area, adding the size neccessary for the
     // tabs
-    return CalcSizeFromPage(bestSize);
+    wxSize best = CalcSizeFromPage(bestSize);
+    CacheBestSize(best);
+    return best;
 }
 
 // ----------------------------------------------------------------------------