diff options
author | Sebastian Geerken <devnull@localhost> | 2014-03-19 14:34:42 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-03-19 14:34:42 +0100 |
commit | a1931ed237ddbb54bf89102422ede5d83851fd3b (patch) | |
tree | af4e7ec01b27ac9e49d5f318729c6ca1964d4288 /dw/outofflowmgr.cc | |
parent | 690d2534d07165b240150de949e4037d07402282 (diff) |
Some RTFL.
Diffstat (limited to 'dw/outofflowmgr.cc')
-rw-r--r-- | dw/outofflowmgr.cc | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/dw/outofflowmgr.cc b/dw/outofflowmgr.cc index c57d2542..e9731547 100644 --- a/dw/outofflowmgr.cc +++ b/dw/outofflowmgr.cc @@ -1642,15 +1642,25 @@ int OutOfFlowMgr::getBorder (Textblock *textblock, Side side, int y, int h, vloat->generatingBlock->getStyle()->boxOffsetX() : vloat->generatingBlock->getStyle()->boxRestWidth(); thisBorder = vloat->size.width + borderIn; + DBG_OBJ_MSGF ("border", 1, "GB: thisBorder = %d + %d = %d", + vloat->size.width, borderIn, thisBorder); } else { assert (wasAllocated (vloat->generatingBlock)); assert (vloat->getWidget()->wasAllocated ()); Allocation *tba = getAllocation(textblock), *fla = vloat->getWidget()->getAllocation (); - thisBorder = side == LEFT ? - fla->x + fla->width - tba->x : - tba->x + tba->width - fla->x; + if (side == LEFT) { + thisBorder = fla->x + fla->width - tba->x; + DBG_OBJ_MSGF ("border", 1, + "not GB: thisBorder = %d + %d - %d = %d", + fla->x, fla->width, tba->x, thisBorder); + } else { + thisBorder = tba->x + tba->width - fla->x; + DBG_OBJ_MSGF ("border", 1, + "not GB: thisBorder = %d + %d - %d = %d", + tba->x, tba->width, fla->x, thisBorder); + } } border = max (border, thisBorder); |