diff options
author | Sebastian Geerken <devnull@localhost> | 2014-02-20 18:01:12 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-02-20 18:01:12 +0100 |
commit | 520edec82edee4e1baf4e2bdb646c98f9d2a3286 (patch) | |
tree | a9949dd798107d163b18ad10b336d51c684105f0 /dw/outofflowmgr.cc | |
parent | f899b9f7dbed1b38445899a491e57726f740db10 (diff) |
RTFL subtleties, part 1.
Diffstat (limited to 'dw/outofflowmgr.cc')
-rw-r--r-- | dw/outofflowmgr.cc | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/dw/outofflowmgr.cc b/dw/outofflowmgr.cc index 5ba445ca..d5b1f364 100644 --- a/dw/outofflowmgr.cc +++ b/dw/outofflowmgr.cc @@ -1623,25 +1623,25 @@ int OutOfFlowMgr::getBorder (Textblock *textblock, Side side, int y, int h, SortedFloatsVector *list = getFloatsListForTextblock (textblock, side); -#ifdef DBG_RTFL - DBG_OBJ_MSG ("border", 1, "searching in list:"); - DBG_OBJ_MSG_START (); - - for (int i = 0; i < list->size(); i++) { - Float *f = list->get(i); - DBG_OBJ_MSGF ("border", 1, - "%d: (%p, i = %d/%d, y = %d/%d, s = (%d * (%d + %d), " - "%s, %s); widget at (%d, %d)", - i, f->getWidget (), f->index, f->sideSpanningIndex, - f->yReq, f->yReal, f->size.width, f->size.ascent, - f->size.descent, f->dirty ? "dirty" : "clean", - f->sizeChangedSinceLastAllocation ? "scsla" : "sNcsla", - f->getWidget()->getAllocation()->x, - f->getWidget()->getAllocation()->y); + DBG_IF_RTFL { + DBG_OBJ_MSG ("border", 1, "searching in list:"); + DBG_OBJ_MSG_START (); + + for (int i = 0; i < list->size(); i++) { + Float *f = list->get(i); + DBG_OBJ_MSGF ("border", 1, + "%d: (%p, i = %d/%d, y = %d/%d, s = (%d * (%d + %d), " + "%s, %s); widget at (%d, %d)", + i, f->getWidget (), f->index, f->sideSpanningIndex, + f->yReq, f->yReal, f->size.width, f->size.ascent, + f->size.descent, f->dirty ? "dirty" : "clean", + f->sizeChangedSinceLastAllocation ? "scsla" : "sNcsla", + f->getWidget()->getAllocation()->x, + f->getWidget()->getAllocation()->y); + } + + DBG_OBJ_MSG_END (); } - - DBG_OBJ_MSG_END (); -#endif int first = list->findFirst (textblock, y, h, lastGB, lastExtIndex); |