aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Toolbar.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc
index 3ceb880..92ab81a 100644
--- a/src/Toolbar.cc
+++ b/src/Toolbar.cc
@@ -936,7 +936,7 @@ void Toolbar::rearrangeItems() {
936 if (relative_items) { 936 if (relative_items) {
937 if (relative_width <= width - fixed_width && stretch_items) { 937 if (relative_width <= width - fixed_width && stretch_items) {
938 relative_width = int(width - fixed_width - relative_width)/stretch_items; 938 relative_width = int(width - fixed_width - relative_width)/stretch_items;
939 } else { 939 } else if (relative_width) {
940 stretch_factor = float(width - fixed_width)/relative_width; 940 stretch_factor = float(width - fixed_width)/relative_width;
941 relative_width = 0; 941 relative_width = 0;
942 } 942 }