]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed a bug whereby setting one element size set all element sizes.
authorJulian Smart <julian@anthemion.co.uk>
Wed, 15 Apr 2009 09:40:36 +0000 (09:40 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 15 Apr 2009 09:40:36 +0000 (09:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60162 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/aui/auibar.cpp

index 0497c3ced9a3e29ad441d87906e638db8378fa1c..3fe31d4b0c109ff2ab4e3fd01318c2b7ade83b54 100644 (file)
@@ -728,9 +728,9 @@ void wxAuiDefaultToolBarArt::SetElementSize(int element_id, int size)
 {
     switch (element_id)
     {
-        case wxAUI_TBART_SEPARATOR_SIZE: m_separator_size = size;
-        case wxAUI_TBART_GRIPPER_SIZE:   m_gripper_size = size;
-        case wxAUI_TBART_OVERFLOW_SIZE:  m_overflow_size = size;
+        case wxAUI_TBART_SEPARATOR_SIZE: m_separator_size = size; break;
+        case wxAUI_TBART_GRIPPER_SIZE:   m_gripper_size = size; break;
+        case wxAUI_TBART_OVERFLOW_SIZE:  m_overflow_size = size; break;
     }
 }