[glabels] Completely disable word-wrap of text objects when auto_shrink is enabled.
- From: Jim Evins <jimevins src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glabels] Completely disable word-wrap of text objects when auto_shrink is enabled.
- Date: Sun, 16 Jul 2017 01:23:56 +0000 (UTC)
commit 782c3c0eaadeba160e0cedb4975e695259172c86
Author: Jim Evins <evins snaught com>
Date: Sat Jul 15 00:43:09 2017 -0400
Completely disable word-wrap of text objects when auto_shrink is enabled.
Fixes glabels issue #29.
src/label-text.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/label-text.c b/src/label-text.c
index 44dc10b..7766777 100644
--- a/src/label-text.c
+++ b/src/label-text.c
@@ -1179,7 +1179,7 @@ layout_text (glLabelText *this,
pango_layout_set_text (layout, text, -1);
pango_layout_set_spacing (layout, font_size * (this->priv->line_spacing-1) * PANGO_SCALE / scale_x);
- if (raw_w == 0.0)
+ if ( (raw_w == 0.0) || auto_shrink )
{
pango_layout_set_width (layout, -1);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]