diff options
-rw-r--r-- | src/tool_text.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tool_text.c b/src/tool_text.c index 9c3eba5..a7f27c2 100644 --- a/src/tool_text.c +++ b/src/tool_text.c @@ -204,8 +204,10 @@ static void update_text(struct text_object *o) } else { - pango_layout_set_width(o->layout, o->base.bb_width*PANGO_SCALE); - pango_layout_set_height(o->layout, o->base.bb_height*PANGO_SCALE); + pango_layout_set_width(o->layout, + o->base.bb_width*PANGO_SCALE); + pango_layout_set_height(o->layout, + o->base.bb_height*PANGO_SCALE); pango_layout_set_wrap(o->layout, PANGO_WRAP_WORD_CHAR); pango_layout_set_ellipsize(o->layout, PANGO_ELLIPSIZE_MIDDLE); |