diff options
Diffstat (limited to 'source/fitz/stext-device.c')
-rw-r--r-- | source/fitz/stext-device.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/fitz/stext-device.c b/source/fitz/stext-device.c index 94ff9fd6..87ba7cba 100644 --- a/source/fitz/stext-device.c +++ b/source/fitz/stext-device.c @@ -577,9 +577,6 @@ fz_add_stext_char_imp(fz_context *ctx, fz_stext_device *dev, fz_stext_style *sty float spacing = 0; float base_offset = 0; - if (glyph < 0) - goto no_glyph; - if (wmode == 0) { dir.x = 1; @@ -627,6 +624,9 @@ fz_add_stext_char_imp(fz_context *ctx, fz_stext_device *dev, fz_stext_style *sty q.y = trm->f; } + if (glyph < 0) + goto no_glyph; + if (dev->cur_span == NULL || trm->a != dev->cur_span->transform.a || trm->b != dev->cur_span->transform.b || trm->c != dev->cur_span->transform.c || trm->d != dev->cur_span->transform.d || |