app/text/gimptext-compat.c (text_get_extents) use the readonly variant of

2008-07-27  Sven Neumann  <sven@gimp.org>

	* 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
This commit is contained in:
Sven Neumann 2008-07-27 20:45:14 +00:00 committed by Sven Neumann
parent 0a40def09c
commit 7a78da0e55
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2008-07-27 Sven Neumann <sven@gimp.org>
* 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 <martinn@svn.gnome.org>
* app/tools/gimprectangletool.c

View File

@ -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);

View File

@ -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);