diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2005-11-10 04:23:43 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2005-11-10 04:23:43 +0000 |
commit | 89f82bb9b0cbdd694a57e7512633595866822dac (patch) | |
tree | af1c8f3feb991c8e54e5d8be4703db3caac44ff5 /pango/pangocairo-fontmap.c | |
parent | 5b1c61cc424657f0f3af02585348e04866705bc8 (diff) | |
download | pango-89f82bb9b0cbdd694a57e7512633595866822dac.tar.gz |
Call get_context_info after g_return_if_fail.
2005-11-09 Behdad Esfahbod <behdad@gnome.org>
* pango/pangocairo-fontmap.c (pango_cairo_update_context): Call
get_context_info after g_return_if_fail.
Diffstat (limited to 'pango/pangocairo-fontmap.c')
-rw-r--r-- | pango/pangocairo-fontmap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pango/pangocairo-fontmap.c b/pango/pangocairo-fontmap.c index ff0db202..80a72b2f 100644 --- a/pango/pangocairo-fontmap.c +++ b/pango/pangocairo-fontmap.c @@ -261,7 +261,7 @@ void pango_cairo_update_context (cairo_t *cr, PangoContext *context) { - PangoCairoContextInfo *info = get_context_info (context, TRUE); + PangoCairoContextInfo *info; cairo_matrix_t cairo_matrix; cairo_surface_t *target; PangoMatrix pango_matrix; @@ -269,6 +269,8 @@ pango_cairo_update_context (cairo_t *cr, g_return_if_fail (cr != NULL); g_return_if_fail (PANGO_IS_CONTEXT (context)); + info = get_context_info (context, TRUE); + cairo_get_matrix (cr, &cairo_matrix); pango_matrix.xx = cairo_matrix.xx; pango_matrix.yx = cairo_matrix.yx; |