diff options
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r-- | src/Toolbar.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc index a1906c0..4a174bd 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc | |||
@@ -1034,6 +1034,7 @@ void Toolbar::rearrangeItems() { | |||
1034 | (*item_it)->hide(); | 1034 | (*item_it)->hide(); |
1035 | // make sure it still gets told the toolbar height | 1035 | // make sure it still gets told the toolbar height |
1036 | tmpw = 1; tmph = height - 2*(bevel_width+borderW); | 1036 | tmpw = 1; tmph = height - 2*(bevel_width+borderW); |
1037 | if (tmph >= (1<<30)) tmph = 1; | ||
1037 | FbTk::translateSize(orient, tmpw, tmph); | 1038 | FbTk::translateSize(orient, tmpw, tmph); |
1038 | (*item_it)->resize(tmpw, tmph); // width of 0 changes to 1 anyway | 1039 | (*item_it)->resize(tmpw, tmph); // width of 0 changes to 1 anyway |
1039 | continue; | 1040 | continue; |
@@ -1070,6 +1071,8 @@ void Toolbar::rearrangeItems() { | |||
1070 | tmpw = itemw; | 1071 | tmpw = itemw; |
1071 | tmph = height - size_offset; | 1072 | tmph = height - size_offset; |
1072 | } | 1073 | } |
1074 | if (tmpw >= (1<<30)) tmpw = 1; | ||
1075 | if (tmph >= (1<<30)) tmph = 1; | ||
1073 | next_x += tmpw + bevel_width; | 1076 | next_x += tmpw + bevel_width; |
1074 | if (bevel_width != 0) | 1077 | if (bevel_width != 0) |
1075 | next_x += 2*borderW; | 1078 | next_x += 2*borderW; |