]> git.saurik.com Git - wxWidgets.git/blobdiff - src/aui/auibar.cpp
added ability to set tool alignment (#10174)
[wxWidgets.git] / src / aui / auibar.cpp
index 67d5ba9af5df57207b9dfbc55915efe4f6872df4..d398e2b79502c7b5e90beedaaa181915a0b80b2d 100644 (file)
@@ -1786,7 +1786,7 @@ bool wxAuiToolBar::Realize()
                 sizer_item = sizer->Add(size.x + (m_tool_border_padding*2),
                                         size.y + (m_tool_border_padding*2),
                                         item.proportion,
-                                        wxALIGN_CENTER);
+                                        item.alignment);
                 if (i+1 < count)
                 {
                     sizer->AddSpacer(m_tool_packing);
@@ -1803,7 +1803,7 @@ bool wxAuiToolBar::Realize()
                 sizer_item = sizer->Add(size.x + (m_tool_border_padding*2),
                                         size.y + (m_tool_border_padding*2),
                                         0,
-                                        wxALIGN_CENTER);
+                                        item.alignment);
                 // add tool packing
                 if (i+1 < count)
                 {