aboutsummaryrefslogtreecommitdiff
path: root/dw/outofflowmgr.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-04-25 11:14:27 +0200
committerSebastian Geerken <devnull@localhost>2014-04-25 11:14:27 +0200
commit43b78ad234b17c28a9d6854d6198868e77ecce70 (patch)
tree329a03d3ca921c0bf2c7f55699fa752551994a8e /dw/outofflowmgr.cc
parent901ee32084c7e59f7d27312482d6b472f974cadf (diff)
Fixed bug in extremes calculation (missing parantheses).
Diffstat (limited to 'dw/outofflowmgr.cc')
-rw-r--r--dw/outofflowmgr.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/dw/outofflowmgr.cc b/dw/outofflowmgr.cc
index ced629a7..ce26be4d 100644
--- a/dw/outofflowmgr.cc
+++ b/dw/outofflowmgr.cc
@@ -1692,8 +1692,9 @@ void OutOfFlowMgr::getFloatsExtremes (Extremes *cbExtr, Side side,
}
// TODO: Or zero (instead of rightDiff) for right floats?
- *minWidth = max (*minWidth,
- extr.minWidth + side == LEFT ? leftDiff : rightDiff);
+ *minWidth =
+ max (*minWidth,
+ extr.minWidth + (side == LEFT ? leftDiff : rightDiff));
*maxWidth = max (*maxWidth, extr.maxWidth + leftDiff + rightDiff);
DBG_OBJ_MSGF ("resize.oofm", 1, " => %d / %d", *minWidth, *maxWidth);