Skip to content

Commit

Permalink
[scaled-font] Fix typo that prevented meta_surface lookup.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Chris Wilson committed Oct 31, 2008
1 parent ab15d76 commit 710f7d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cairo-scaled-font.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 710f7d3

Please sign in to comment.