From a608bcbf777d126198b046c317af58cf4f373002 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Sun, 23 Nov 2008 15:06:44 +0000 Subject: [PATCH] (uniscribe_encode_char): Ensure context is restored before returning. --- src/w32uniscribe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/w32uniscribe.c b/src/w32uniscribe.c index ce2dd166313..25224302247 100644 --- a/src/w32uniscribe.c +++ b/src/w32uniscribe.c @@ -524,9 +524,9 @@ uniscribe_encode_char (font, c) result = ScriptGetCMap (context, &(uniscribe_font->cache), ch, len, 0, glyphs); if (SUCCEEDED (result)) - return glyphs[0]; + code = glyphs[0]; else - return 0; /* notdef - enough in some cases to get the script + code = 0; /* notdef - enough in some cases to get the script engine working, but not others... */ } } -- 2.39.2