catch absurd but possible div-by-zero
This commit is contained in:
parent
d4e9bb7656
commit
4304e66787
1 changed files with 1 additions and 1 deletions
|
@ -936,7 +936,7 @@ void Toolbar::rearrangeItems() {
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue