From ac5b25818ecef8ec311235ea64419e3ce1d9bf99 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 23 Mar 2016 16:45:40 +0100 Subject: Fix declaration after statements. --- source/fitz/noto.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/fitz/noto.c') diff --git a/source/fitz/noto.c b/source/fitz/noto.c index 681a67da..891fa93b 100644 --- a/source/fitz/noto.c +++ b/source/fitz/noto.c @@ -40,7 +40,7 @@ return *size = fz_font_ ## NAME ## _size, fz_font_ ## NAME #define BASE14(NAME, FONT) \ - DEC_FONT(FONT); if (!strcmp(NAME, name)) RET_FONT(FONT) + if (!strcmp(NAME, name)) { DEC_FONT(FONT); RET_FONT(FONT); } const char * fz_lookup_base14_font(fz_context *ctx, const char *name, int *size) @@ -65,13 +65,14 @@ fz_lookup_base14_font(fz_context *ctx, const char *name, int *size) const char * fz_lookup_cjk_font(fz_context *ctx, int registry, int serif, int wmode, int *size, int *index) { - if (index) *index = wmode; #ifndef TOFU_CJK #ifndef TOFU_CJK_EXT DEC_FONT(DroidSansFallbackFull_ttc); + if (index) *index = wmode; RET_FONT(DroidSansFallbackFull_ttc); #else DEC_FONT(DroidSansFallback_ttc); + if (index) *index = wmode; RET_FONT(DroidSansFallback_ttc); #endif #else -- cgit v1.2.3