diff options
author | Sebastian Geerken <devnull@localhost> | 2014-09-22 20:28:17 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-09-22 20:28:17 +0200 |
commit | 503a876c5d9f57e1452494c27c83fe9a75ff5209 (patch) | |
tree | 6701f563dc04a932a039deb73517680b80cef6f5 /dw/textblock_linebreaking.cc | |
parent | 156f3622e4197dddeba990637dcbe1100c5d51ac (diff) |
If either dimension of the position of a positioned element is effectively undefined, use the static position of this element, respectively.
Diffstat (limited to 'dw/textblock_linebreaking.cc')
-rw-r--r-- | dw/textblock_linebreaking.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/dw/textblock_linebreaking.cc b/dw/textblock_linebreaking.cc index dbce505e..2d67cf4e 100644 --- a/dw/textblock_linebreaking.cc +++ b/dw/textblock_linebreaking.cc @@ -753,14 +753,15 @@ int Textblock::wrapWordInFlow (int wordIndex, bool wrapAll) // Step 2: position the float and re-calculate the line. - // TODO "x = 0" is not quite correct, but this does not - // matter (currently?). + // TODO "x" is not quite correct, but this does not matter + // (currently?). lastFloatPos = newFloatPos; for (int i = 0; i < NUM_OOFM; i++) searchOutOfFlowMgr(i)->tellPosition - (words->getRef(lastFloatPos)->content.widget, 0, yNewLine); + (words->getRef(lastFloatPos)->content.widget, + boxOffsetX (), yNewLine); balanceBreakPosAndHeight (wordIndex, firstIndex, &searchUntil, tempNewLine, penaltyIndex, false, @@ -853,8 +854,8 @@ int Textblock::wrapWordOofRef (int wordIndex, bool wrapAll) DBG_OBJ_MSGF ("construct.word", 1, "parentRef = %d, oofm = %p", widget->parentRef, oofm); if (oofm && !oofm->mayAffectBordersAtAll ()) - // TODO Again, "x = 0" is not correct (see above). - oofm->tellPosition (widget, 0, yNewLine); + // TODO Again, "x" is not correct (see above). + oofm->tellPosition (widget, boxOffsetX (), yNewLine); DBG_OBJ_LEAVE (); |