From 23511cdb7748415043f6167ee6d3845e14f2c137 Mon Sep 17 00:00:00 2001 From: Benjamin Williams Date: Wed, 3 Sep 2008 17:50:28 +0000 Subject: [PATCH 1/1] fix small logic error git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/aui/auibar.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/aui/auibar.cpp b/src/aui/auibar.cpp index 49e1bf8f41..3ea18923d5 100644 --- a/src/aui/auibar.cpp +++ b/src/aui/auibar.cpp @@ -1784,7 +1784,9 @@ bool wxAuiToolBar::Realize() vert_sizer->AddStretchSpacer(1); ctrl_sizer_item = vert_sizer->Add(item.window, 0, wxEXPAND); vert_sizer->AddStretchSpacer(1); - if ( (m_style & wxAUI_TB_TEXT) && !item.GetLabel().empty() ) + if ( (m_style & wxAUI_TB_TEXT) && + m_tool_text_orientation == wxAUI_TBTOOL_TEXT_BOTTOM && + !item.GetLabel().empty() ) { wxSize s = GetLabelSize(item.GetLabel()); vert_sizer->Add(1, s.y); -- 2.45.2