mirror of https://github.com/GNOME/gimp.git
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:
parent
0a40def09c
commit
7a78da0e55
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue