summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-10-31 02:14:53 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2008-10-31 02:24:05 +0000
commit710f7d30d348517602293f123525aef7677d69cf (patch)
tree048c81bcbe966dd2db79efad7c360bd184ffa007
parentab15d7627506a837fea7101661425bb923ef5b4f (diff)
[scaled-font] Fix typo that prevented meta_surface lookup.
test/text-glyph-range was crashing since we requested the meta_surface but the glyph wrongly believed it already had the meta_surface but was checking for a path instead.
-rw-r--r--src/cairo-scaled-font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-scaled-font.c b/src/cairo-scaled-font.c
index 3ec07d54..3c5a9598 100644
--- a/src/cairo-scaled-font.c
+++ b/src/cairo-scaled-font.c
@@ -2399,7 +2399,7 @@ _cairo_scaled_glyph_lookup (cairo_scaled_font_t *scaled_font,
need_info |= CAIRO_SCALED_GLYPH_INFO_PATH;
if (((info & CAIRO_SCALED_GLYPH_INFO_META_SURFACE) != 0 &&
- scaled_glyph->path == NULL))
+ scaled_glyph->meta_surface == NULL))
need_info |= CAIRO_SCALED_GLYPH_INFO_META_SURFACE;
if (need_info) {