aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-04-02 17:29:39 +0200
committerSebastian Geerken <devnull@localhost>2014-04-02 17:29:39 +0200
commit42b27295acd59a1f7c124bea4004c7b9b0116034 (patch)
tree5e8387213d736cb15a27fa22ae0733d3338c33c0
parent06bfcf7715899f9ff5e551d4146770b3a7096141 (diff)
Fixed a bug related to line breaking/float positioning (and an RTFL glitch).
-rw-r--r--dw/textblock_linebreaking.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/dw/textblock_linebreaking.cc b/dw/textblock_linebreaking.cc
index 0cb5e971..fda6debb 100644
--- a/dw/textblock_linebreaking.cc
+++ b/dw/textblock_linebreaking.cc
@@ -759,6 +759,8 @@ bool Textblock::wrapWordInFlow (int wordIndex, bool wrapAll)
if (newFloatPos == -1)
floatHandled = false;
else {
+ floatHandled = true;
+
// Step 2: position the float and re-calculate the line.
lastFloatPos = newFloatPos;
@@ -1814,7 +1816,7 @@ void Textblock::showMissingLines ()
lines->size () > 0 ? lines->getLastRef()->lastWord + 1 : 0;
DBG_OBJ_MSGF ("construct.line", 1,
- "words->size() = %d, firstWordToWrap = %d, tempWord = %d",
+ "words->size() = %d, firstWordToWrap = %d, tempWord = %s",
words->size (), firstWordToWrap, tempWord ? "true" : "false");
if (tempWord) {