]> 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 25d28d865d3f801e77b287858818734693319586..bf8a83343440d814fcd28e01348a0eb7a880554d 100644 (file)
 // constructors and destructors
 // ----------------------------------------------------------------------------
 
-wxBookCtrl::wxBookCtrl()
-{
-    Init();
-}
-
-wxBookCtrl::wxBookCtrl(wxWindow *parent,
-                       wxWindowID id,
-                       const wxPoint& pos,
-                       const wxSize& size,
-                       long style,
-                       const wxString& name)
-{
-    Init();
-
-    (void)Create(parent, id, pos, size, style, name);
-}
-
 void wxBookCtrl::Init()
 {
     m_imageList = NULL;
@@ -147,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;
 }
 
 // ----------------------------------------------------------------------------