diff options
Diffstat (limited to 'dw/textblock.cc')
-rw-r--r-- | dw/textblock.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc index 27bc584e..91f9a82e 100644 --- a/dw/textblock.cc +++ b/dw/textblock.cc @@ -322,7 +322,7 @@ Textblock::~Textblock () parent class destructor. (???) */ words = NULL; - //DBG_OBJ_SET_NUM(this, "num_lines", lines->size ()); + DBG_OBJ_DELETE (); } /** @@ -2125,6 +2125,7 @@ void Textblock::addText0 (const char *text, size_t len, short flags, Word *word = addWord (size->width, size->ascent, size->descent, flags, style); + DBG_OBJ_ASSOC_CHILD (style); word->content.type = core::Content::TEXT; word->content.text = layout->textZone->strndup(text, len); @@ -2438,6 +2439,7 @@ void Textblock::addParbreak (int space, core::style::Style *style) } word = addWord (0, 0, 0, 0, style); + DBG_OBJ_ASSOC_CHILD (style); word->content.type = core::Content::BREAK; word->badnessAndPenalty.setPenalty (PENALTY_FORCE_BREAK); word->content.breakSpace = space; @@ -2466,6 +2468,8 @@ void Textblock::addLinebreak (core::style::Style *style) // ... otherwise, it has no size (and does not enlarge the line). word = addWord (0, 0, 0, 0, style); + DBG_OBJ_ASSOC_CHILD (style); + word->content.type = core::Content::BREAK; word->badnessAndPenalty.setPenalty (PENALTY_FORCE_BREAK); word->content.breakSpace = 0; |