Commit a608bcbf authored by Jason Rumney's avatar Jason Rumney
Browse files

(uniscribe_encode_char): Ensure context is restored before returning.

parent 12f0bd4c
......@@ -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... */
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment