From 7a78da0e552169e478ac9397339d78f4fbe4bcb2 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Sun, 27 Jul 2008 20:45:14 +0000 Subject: [PATCH] app/text/gimptext-compat.c (text_get_extents) use the readonly variant of 2008-07-27 Sven Neumann * app/text/gimptext-compat.c (text_get_extents) * app/text/gimptextlayout-render.c (gimp_text_layout_render): use the readonly variant of pango_layout_iter_get_line(). svn path=/trunk/; revision=26323 --- ChangeLog | 6 ++++++ app/text/gimptext-compat.c | 2 +- app/text/gimptextlayout-render.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3c13a81e57..32f3e50ade 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-07-27 Sven Neumann + + * app/text/gimptext-compat.c (text_get_extents) + * app/text/gimptextlayout-render.c (gimp_text_layout_render): + use the readonly variant of pango_layout_iter_get_line(). + 2008-07-27 Martin Nordholts * app/tools/gimprectangletool.c diff --git a/app/text/gimptext-compat.c b/app/text/gimptext-compat.c index 2e07b0a85e..b0675a59e5 100644 --- a/app/text/gimptext-compat.c +++ b/app/text/gimptext-compat.c @@ -176,7 +176,7 @@ text_get_extents (const gchar *fontname, PangoLayoutLine *line; iter = pango_layout_get_iter (layout); - line = pango_layout_iter_get_line (iter); + line = pango_layout_iter_get_line_readonly (iter); pango_layout_iter_free (iter); pango_layout_line_get_pixel_extents (line, NULL, &rect); diff --git a/app/text/gimptextlayout-render.c b/app/text/gimptextlayout-render.c index 0734ef12af..36dbcede99 100644 --- a/app/text/gimptextlayout-render.c +++ b/app/text/gimptextlayout-render.c @@ -91,7 +91,7 @@ gimp_text_layout_render (GimpTextLayout *layout, PangoLayoutLine *line; gint baseline; - line = pango_layout_iter_get_line (iter); + line = pango_layout_iter_get_line_readonly (iter); pango_layout_iter_get_line_extents (iter, NULL, &rect); baseline = pango_layout_iter_get_baseline (iter);