aboutsummaryrefslogtreecommitdiff
path: root/dw
diff options
context:
space:
mode:
Diffstat (limited to 'dw')
-rw-r--r--dw/fltkui.cc4
-rw-r--r--dw/textblock.cc8
-rw-r--r--dw/widget.cc2
3 files changed, 10 insertions, 4 deletions
diff --git a/dw/fltkui.cc b/dw/fltkui.cc
index a78ab7de..803d0e26 100644
--- a/dw/fltkui.cc
+++ b/dw/fltkui.cc
@@ -213,7 +213,7 @@ void FltkResource::detachView (FltkView *view)
void FltkResource::sizeAllocate (core::Allocation *allocation)
{
- DBG_OBJ_MSGF ("resize", 0, "<b>sizeAllocate</b> ((%d, %d; %d * (%d + %d))",
+ DBG_OBJ_MSGF ("resize", 0, "<b>sizeAllocate</b> (%d, %d; %d * (%d + %d))",
allocation->x, allocation->y, allocation->width,
allocation->ascent, allocation->descent);
@@ -705,7 +705,7 @@ void FltkEntryResource::sizeAllocate (core::Allocation *allocation)
FltkResource::sizeAllocate(allocation);
} else {
DBG_OBJ_MSGF ("resize", 0,
- "<b>sizeAllocate</b> ((%d, %d; %d * (%d + %d))",
+ "<b>sizeAllocate</b> (%d, %d; %d * (%d + %d))",
allocation->x, allocation->y, allocation->width,
allocation->ascent, allocation->descent);
diff --git a/dw/textblock.cc b/dw/textblock.cc
index 2a8b76c8..c7b46286 100644
--- a/dw/textblock.cc
+++ b/dw/textblock.cc
@@ -1676,12 +1676,18 @@ void Textblock::draw (core::View *view, core::Rectangle *area)
Textblock::Word *Textblock::addWord (int width, int ascent, int descent,
short flags, core::style::Style *style)
{
+ DBG_OBJ_MSGF ("construct.word", 0, "<b>addWord</b> (%d * (%d + %d), %d, %p)",
+ width, ascent, descent, flags, style);
+ DBG_OBJ_MSG_START ();
+
words->increase ();
DBG_OBJ_SET_NUM ("words.size", words->size ());
int wordNo = words->size () - 1;
initWord (wordNo);
fillWord (wordNo, width, ascent, descent, flags, style);
- return words->getRef (wordNo);;
+
+ DBG_OBJ_MSG_END ();
+ return words->getRef (wordNo);
}
/**
diff --git a/dw/widget.cc b/dw/widget.cc
index ad34ad46..ba49c158 100644
--- a/dw/widget.cc
+++ b/dw/widget.cc
@@ -359,7 +359,7 @@ void Widget::sizeAllocate (Allocation *allocation)
assert (!getExtremesEntered ());
assert (resizeIdleEntered ());
- DBG_OBJ_MSGF ("resize", 0, "<b>sizeAllocate</b> ((%d, %d; %d * (%d + %d))",
+ DBG_OBJ_MSGF ("resize", 0, "<b>sizeAllocate</b> (%d, %d; %d * (%d + %d))",
allocation->x, allocation->y, allocation->width,
allocation->ascent, allocation->descent);
DBG_OBJ_MSG_START ();