summaryrefslogtreecommitdiff
path: root/src/Toolbar.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r--src/Toolbar.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc
index 1305279..6552859 100644
--- a/src/Toolbar.cc
+++ b/src/Toolbar.cc
@@ -1044,6 +1044,7 @@ void Toolbar::rearrangeItems() {
1044 (*item_it)->hide(); 1044 (*item_it)->hide();
1045 // make sure it still gets told the toolbar height 1045 // make sure it still gets told the toolbar height
1046 tmpw = 1; tmph = height - 2*(bevel_width+borderW); 1046 tmpw = 1; tmph = height - 2*(bevel_width+borderW);
1047 if (tmph >= (1<<30)) tmph = 1;
1047 FbTk::translateSize(orient, tmpw, tmph); 1048 FbTk::translateSize(orient, tmpw, tmph);
1048 (*item_it)->resize(tmpw, tmph); // width of 0 changes to 1 anyway 1049 (*item_it)->resize(tmpw, tmph); // width of 0 changes to 1 anyway
1049 continue; 1050 continue;
@@ -1080,6 +1081,8 @@ void Toolbar::rearrangeItems() {
1080 tmpw = itemw; 1081 tmpw = itemw;
1081 tmph = height - size_offset; 1082 tmph = height - size_offset;
1082 } 1083 }
1084 if (tmpw >= (1<<30)) tmpw = 1;
1085 if (tmph >= (1<<30)) tmph = 1;
1083 next_x += tmpw + bevel_width; 1086 next_x += tmpw + bevel_width;
1084 if (bevel_width != 0) 1087 if (bevel_width != 0)
1085 next_x += 2*borderW; 1088 next_x += 2*borderW;