X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f7f97bf31cf094c5970ee7cdeae5cc9becd877e4..4d01e350fe2d8cb15c068d579c4022345f3ff0c0:/src/common/bookctrl.cpp?ds=inline diff --git a/src/common/bookctrl.cpp b/src/common/bookctrl.cpp index b04136183e..bf8a833434 100644 --- a/src/common/bookctrl.cpp +++ b/src/common/bookctrl.cpp @@ -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; } // ----------------------------------------------------------------------------