summaryrefslogtreecommitdiff
path: root/lib/libXfont/src/bitmap/bitmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libXfont/src/bitmap/bitmap.c')
-rw-r--r--lib/libXfont/src/bitmap/bitmap.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libXfont/src/bitmap/bitmap.c b/lib/libXfont/src/bitmap/bitmap.c
index 9b20fafe9..0a379eb08 100644
--- a/lib/libXfont/src/bitmap/bitmap.c
+++ b/lib/libXfont/src/bitmap/bitmap.c
@@ -63,8 +63,12 @@ bitmapGetGlyphs(FontPtr pFont, unsigned long count, unsigned char *chars,
case Linear8Bit:
case TwoD8Bit:
- if (pFont->info.firstRow > 0)
+ if (pFont->info.firstRow > 0) {
+ if (pDefault)
+ while (count--)
+ *glyphs++ = pDefault;
break;
+ }
if (pFont->info.allExist && pDefault) {
while (count--) {
c = (*chars++) - firstCol;