From 6e821f12d38973591852ba37014f0e9ce96b521e Mon Sep 17 00:00:00 2001 From: Sebastian Geerken Date: Sun, 17 Jul 2016 11:42:33 +0200 Subject: RTFL. --- dw/textblock_linebreaking.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'dw/textblock_linebreaking.cc') diff --git a/dw/textblock_linebreaking.cc b/dw/textblock_linebreaking.cc index fddfb44f..c02453f7 100644 --- a/dw/textblock_linebreaking.cc +++ b/dw/textblock_linebreaking.cc @@ -452,6 +452,7 @@ Textblock::Line *Textblock::addLine (int firstWord, int lastWord, line->contentDescent); mustQueueResize = true; + DBG_OBJ_SET_BOOL ("mustQueueResize", mustQueueResize); int xWidget = line->textOffset; int yLine = yOffsetOfLineCreated (line); @@ -686,7 +687,7 @@ int Textblock::wrapWordInFlow (int wordIndex, bool wrapAll) } } - if(!newLine && !wrapAll) + if(!newLine && !wrapAll) { // No new line is added. "mustQueueResize" must, // nevertheless, be set, so that flush() will call // queueResize(), and later sizeRequestImpl() is called, @@ -694,6 +695,8 @@ int Textblock::wrapWordInFlow (int wordIndex, bool wrapAll) // calls this method again, with wrapAll == true, so that // newLine is calculated as "true". mustQueueResize = true; + DBG_OBJ_SET_BOOL ("mustQueueResize", mustQueueResize); + } PRINTF ("[%p] special case? newLine = %s, wrapAll = %s => " "mustQueueResize = %s\n", this, newLine ? "true" : "false", -- cgit v1.2.3