aboutsummaryrefslogtreecommitdiff
path: root/dw/textblock_linebreaking.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2013-01-05 11:48:21 +0100
committerSebastian Geerken <devnull@localhost>2013-01-05 11:48:21 +0100
commit824cd84f321d358ab878b99cbaaef936823d8c8b (patch)
tree8eafc276a7adc25c4708e3d6806f0d6f387b0a77 /dw/textblock_linebreaking.cc
parentcdc11dcd40d57b07e73304d0f41ad5273d292874 (diff)
Debug messages.
Diffstat (limited to 'dw/textblock_linebreaking.cc')
-rw-r--r--dw/textblock_linebreaking.cc24
1 files changed, 1 insertions, 23 deletions
diff --git a/dw/textblock_linebreaking.cc b/dw/textblock_linebreaking.cc
index 99552b3d..b8a10207 100644
--- a/dw/textblock_linebreaking.cc
+++ b/dw/textblock_linebreaking.cc
@@ -210,29 +210,7 @@ void Textblock::BadnessAndPenalty::print ()
void Textblock::printWordShort (Word *word)
{
- switch(word->content.type) {
- case core::Content::TEXT:
- printf ("\"%s\"", word->content.text);
- break;
- case core::Content::WIDGET_IN_FLOW:
- printf ("<widget in flow: %p (%s)>",
- word->content.widget, word->content.widget->getClassName());
- break;
- case core::Content::WIDGET_OOF_REF:
- printf ("<widget oof ref: %p (%s)>",
- word->content.widget, word->content.widget->getClassName());
- break;
- case core::Content::WIDGET_OOF_CONT:
- printf ("<widge oof cont: %p (%s)>",
- word->content.widget, word->content.widget->getClassName());
- break;
- case core::Content::BREAK:
- printf ("<break>");
- break;
- default:
- printf ("<?>");
- break;
- }
+ core::Content::print (&(word->content));
}
void Textblock::printWordFlags (short flags)