aboutsummaryrefslogtreecommitdiffstats
path: root/src/nsfont.m
diff options
context:
space:
mode:
authorPaul Eggert2012-07-12 18:37:11 -0700
committerPaul Eggert2012-07-12 18:37:11 -0700
commit24ef80aebfe1f9042070daf0e03bfe6dea87b669 (patch)
tree35302daff77627a0cae456133cb2695b2315e5da /src/nsfont.m
parent739ae01050106b1dda211c09f411b49a70b47c4e (diff)
downloademacs-24ef80aebfe1f9042070daf0e03bfe6dea87b669.tar.gz
emacs-24ef80aebfe1f9042070daf0e03bfe6dea87b669.zip
* nsfont.m (ns_charset_covers): Don't abort if no bitmap.
Fixes: debbugs:11853
Diffstat (limited to 'src/nsfont.m')
-rw-r--r--src/nsfont.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nsfont.m b/src/nsfont.m
index 7a456c4bb5d..7a44182a93e 100644
--- a/src/nsfont.m
+++ b/src/nsfont.m
@@ -271,6 +271,11 @@ ns_charset_covers(NSCharacterSet *set1, NSCharacterSet *set2, float pct)
271 const unsigned short *bytes2 = [[set2 bitmapRepresentation] bytes]; 271 const unsigned short *bytes2 = [[set2 bitmapRepresentation] bytes];
272 int i, off = 0, tot = 0; 272 int i, off = 0, tot = 0;
273 273
274 /* Work around what appears to be a GNUstep bug.
275 See <http://bugs.gnu.org/11853>. */
276 if (! (bytes1 && bytes2))
277 return NO;
278
274 for (i=0; i<4096; i++, bytes1++, bytes2++) 279 for (i=0; i<4096; i++, bytes1++, bytes2++)
275 if (*bytes2) 280 if (*bytes2)
276 { 281 {