Commit 24ef80ae authored by Paul Eggert's avatar Paul Eggert
Browse files

* nsfont.m (ns_charset_covers): Don't abort if no bitmap.

Fixes: debbugs:11853
parent 739ae010
2012-07-13 Paul Eggert <eggert@cs.ucla.edu>
* nsfont.m (ns_charset_covers): Don't abort if no bitmap (Bug#11853).
Report and trivial fix by BT Templeton.
2012-07-13 Glenn Morris <rgm@gnu.org>
 
* s/usg5-4-common.h (NSIG_MINIMUM): Let configure set it.
......
......@@ -271,6 +271,11 @@ static void ns_glyph_metrics (struct nsfont_info *font_info,
const unsigned short *bytes2 = [[set2 bitmapRepresentation] bytes];
int i, off = 0, tot = 0;
/* Work around what appears to be a GNUstep bug.
See <http://bugs.gnu.org/11853>. */
if (! (bytes1 && bytes2))
return NO;
for (i=0; i<4096; i++, bytes1++, bytes2++)
if (*bytes2)
{
......
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