gimp r26323 - in trunk: . app/text



Author: neo
Date: Sun Jul 27 20:45:14 2008
New Revision: 26323
URL: http://svn.gnome.org/viewvc/gimp?rev=26323&view=rev

Log:
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().



Modified:
   trunk/ChangeLog
   trunk/app/text/gimptext-compat.c
   trunk/app/text/gimptextlayout-render.c

Modified: trunk/app/text/gimptext-compat.c
==============================================================================
--- trunk/app/text/gimptext-compat.c	(original)
+++ trunk/app/text/gimptext-compat.c	Sun Jul 27 20:45:14 2008
@@ -176,7 +176,7 @@
       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);

Modified: trunk/app/text/gimptextlayout-render.c
==============================================================================
--- trunk/app/text/gimptextlayout-render.c	(original)
+++ trunk/app/text/gimptextlayout-render.c	Sun Jul 27 20:45:14 2008
@@ -91,7 +91,7 @@
       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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]