aboutsummaryrefslogtreecommitdiff
path: root/dw/textblock_linebreaking.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dw/textblock_linebreaking.cc')
-rw-r--r--dw/textblock_linebreaking.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/dw/textblock_linebreaking.cc b/dw/textblock_linebreaking.cc
index 9a164198..82aef93a 100644
--- a/dw/textblock_linebreaking.cc
+++ b/dw/textblock_linebreaking.cc
@@ -752,11 +752,15 @@ int Textblock::wrapWordInFlow (int wordIndex, bool wrapAll)
floatHandled = true;
// Step 2: position the float and re-calculate the line.
+
+ // TODO "x = 0" 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, yNewLine);
+ (words->getRef(lastFloatPos)->content.widget, 0, yNewLine);
balanceBreakPosAndHeight (wordIndex, firstIndex, &searchUntil,
tempNewLine, penaltyIndex, false,