[librsvg] rsvg_text_create_layout(): Set all the layout properties first; set the text at the very end
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] rsvg_text_create_layout(): Set all the layout properties first; set the text at the very end
- Date: Fri, 15 Dec 2017 18:54:17 +0000 (UTC)
commit 617c2a23e3ff0387c7aa8a16aa711ac9a8346ece
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Dec 15 11:39:38 2017 -0600
rsvg_text_create_layout(): Set all the layout properties first; set the text at the very end
rsvg-text.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rsvg-text.c b/rsvg-text.c
index 4df0b5b..ff72a53 100644
--- a/rsvg-text.c
+++ b/rsvg-text.c
@@ -619,11 +619,11 @@ rsvg_text_create_layout (RsvgDrawingCtx *ctx, const char *text)
pango_layout_set_attributes (layout, attr_list);
pango_attr_list_unref (attr_list);
- pango_layout_set_text (layout, text, -1);
-
pango_layout_set_alignment (layout, (rsvg_state_get_text_dir (state) == PANGO_DIRECTION_LTR) ?
PANGO_ALIGN_LEFT : PANGO_ALIGN_RIGHT);
+ pango_layout_set_text (layout, text, -1);
+
g_object_unref (context);
return layout;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]