aboutsummaryrefslogtreecommitdiff
path: root/src/Toolbar.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r--src/Toolbar.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc
index c43a419..4300790 100644
--- a/src/Toolbar.cc
+++ b/src/Toolbar.cc
@@ -953,10 +953,7 @@ void Toolbar::rearrangeItems() {
953 fixed_width += bevel_width + 2*borderW; 953 fixed_width += bevel_width + 2*borderW;
954 } else { 954 } else {
955 if (!first) { 955 if (!first) {
956 if (borderW > last_bw) 956 fixed_width += std::max(borderW, last_bw);
957 fixed_width += borderW;
958 else
959 fixed_width += last_bw;
960 } else { 957 } else {
961 first = false; 958 first = false;
962 } 959 }
@@ -1013,10 +1010,7 @@ void Toolbar::rearrangeItems() {
1013 if (bevel_width == 0) { 1010 if (bevel_width == 0) {
1014 offset = -borderW; 1011 offset = -borderW;
1015 size_offset = 0; 1012 size_offset = 0;
1016 if (borderW > last_bw) 1013 next_x += std::max(borderW, last_bw);
1017 next_x += borderW;
1018 else
1019 next_x += last_bw;
1020 } 1014 }
1021 last_bw = borderW; 1015 last_bw = borderW;
1022 1016