diff options
Diffstat (limited to 'tree')
-rw-r--r-- | tree/colorspace.c | 4 | ||||
-rw-r--r-- | tree/font.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tree/colorspace.c b/tree/colorspace.c index 2a3e8e87..799011f3 100644 --- a/tree/colorspace.c +++ b/tree/colorspace.c @@ -61,12 +61,12 @@ fz_stdconvpixmap(fz_colorspace *srcs, fz_pixmap *src, fz_colorspace *dsts, fz_pi unsigned char *s = src->samples; unsigned char *d = dst->samples; + printf("convert pixmap from %s to %s\n", srcs->name, dsts->name); + assert(src->w == dst->w && src->h == dst->h); assert(src->n == srcs->n + 1); assert(dst->n == dsts->n + 1); - printf("convert pixmap from %s to %s\n", srcs->name, dsts->name); - for (y = 0; y < src->h; y++) { for (x = 0; x < src->w; x++) diff --git a/tree/font.c b/tree/font.c index 0814efba..b7367ce1 100644 --- a/tree/font.c +++ b/tree/font.c @@ -185,7 +185,7 @@ fz_hmtx fz_gethmtx(fz_font *font, int cid) { int l = 0; - int r = font->nhmtx; + int r = font->nhmtx - 1; int m; if (!font->hmtx) @@ -212,7 +212,7 @@ fz_getvmtx(fz_font *font, int cid) fz_hmtx h; fz_vmtx v; int l = 0; - int r = font->nvmtx; + int r = font->nvmtx - 1; int m; if (!font->vmtx) |