]> git.saurik.com Git - wxWidgets.git/commitdiff
fix small logic error
authorBenjamin Williams <bwilliams@kirix.com>
Wed, 3 Sep 2008 17:50:28 +0000 (17:50 +0000)
committerBenjamin Williams <bwilliams@kirix.com>
Wed, 3 Sep 2008 17:50:28 +0000 (17:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/aui/auibar.cpp

index 49e1bf8f418b974ee6b84dc29d093100b1fb96eb..3ea18923d536cd129c5f582d72dedc064e30daa9 100644 (file)
@@ -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);