catch absurd but possible div-by-zero
Thomas Lübking thomas.luebking@gmail.com
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/Toolbar.cc
→
src/Toolbar.cc
@@ -936,7 +936,7 @@ float stretch_factor = 1.0f;
if (relative_items) { if (relative_width <= width - fixed_width && stretch_items) { relative_width = int(width - fixed_width - relative_width)/stretch_items; - } else { + } else if (relative_width) { stretch_factor = float(width - fixed_width)/relative_width; relative_width = 0; }