From 378c9833b72698351c4e7db14b7de24e658d814e Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 27 Mar 2007 13:42:42 +0000 Subject: [PATCH] Need an extra pixel when divider present git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/tbar95.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/msw/tbar95.cpp b/src/msw/tbar95.cpp index eae78ec579..e08d46d3d8 100644 --- a/src/msw/tbar95.cpp +++ b/src/msw/tbar95.cpp @@ -400,6 +400,9 @@ wxSize wxToolBar::DoGetBestSize() const sizeBest.y = size.cy; } + if (!IsVertical() && !(GetWindowStyle() & wxTB_NODIVIDER)) + sizeBest.y += 1; + CacheBestSize(sizeBest); return sizeBest; -- 2.50.0