[cairo-commit] Branch '1.8' - src/cairo-win32-font.c

Chris Wilson ickle at kemper.freedesktop.org
Wed Jun 3 02:23:04 PDT 2009


 src/cairo-win32-font.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit a278c1bea90b19b0d10c94cb70e8a2a678a23648
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Sun May 17 18:12:39 2009 +0930

    Ensure win32 font index_to_ucs4() sets ucs4 to -1 if lookup fails

diff --git a/src/cairo-win32-font.c b/src/cairo-win32-font.c
index b4f125e..67ddf68 100644
--- a/src/cairo-win32-font.c
+++ b/src/cairo-win32-font.c
@@ -1550,6 +1550,7 @@ _cairo_win32_scaled_font_index_to_ucs4 (void		*abstract_font,
 	goto exit1;
     }
 
+    *ucs4 = (uint32_t) -1;
     for (i = 0; i < glyph_set->cRanges; i++) {
 	num_glyphs = glyph_set->ranges[i].cGlyphs;
 


More information about the cairo-commit mailing list