summaryrefslogtreecommitdiff
path: root/source/fitz/noto.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-03-23 16:45:40 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-03-23 17:28:48 +0100
commitac5b25818ecef8ec311235ea64419e3ce1d9bf99 (patch)
tree2a5913a7b6acb69f98c850527d5363129433146f /source/fitz/noto.c
parent5f8ed8d0b32e8a59e3e33ae6ef67c8e9afd58bab (diff)
downloadmupdf-ac5b25818ecef8ec311235ea64419e3ce1d9bf99.tar.xz
Fix declaration after statements.
Diffstat (limited to 'source/fitz/noto.c')
-rw-r--r--source/fitz/noto.c5
1 files changed, 3 insertions, 2 deletions
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