From: Benjamin Williams Date: Wed, 3 Sep 2008 17:50:28 +0000 (+0000) Subject: fix small logic error X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/23511cdb7748415043f6167ee6d3845e14f2c137?hp=9578058d4e0d08f0f08b3d76bc2cfa2effc7e3b4 fix small logic error git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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);