summaryrefslogtreecommitdiff
path: root/Build/source/texk/ps2pkm/pkout.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/ps2pkm/pkout.c')
-rw-r--r--Build/source/texk/ps2pkm/pkout.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Build/source/texk/ps2pkm/pkout.c b/Build/source/texk/ps2pkm/pkout.c
index cb6cb627b63..d1b2952c886 100644
--- a/Build/source/texk/ps2pkm/pkout.c
+++ b/Build/source/texk/ps2pkm/pkout.c
@@ -207,6 +207,9 @@ static void pk_runlengths(int W, int H, int (*next_pixel)())
if (runlength>0)
count[cnt++] = runlength;
+ /* for an empty glyph */
+ if (cnt == first_count) count[cnt++] = 0;
+
#ifdef DEBUG
current_value = BLACK;
for (i=first_count; i<cnt; i++)