From f80d3e27163a8fdc335b4796843d4e7c8b258672 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 7 Apr 2015 16:48:02 +0200 Subject: Fix some warnings. --- source/fitz/stext-device.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source/fitz') diff --git a/source/fitz/stext-device.c b/source/fitz/stext-device.c index 6ca26912..1bf1332b 100644 --- a/source/fitz/stext-device.c +++ b/source/fitz/stext-device.c @@ -572,7 +572,7 @@ fz_add_text_char_imp(fz_context *ctx, fz_text_device *dev, fz_text_style *style, { int can_append = 1; int add_space = 0; - fz_point dir, ndir, p, q, r, match; + fz_point dir, ndir, p, q, r; float size; fz_point delta; float spacing = 0; @@ -602,7 +602,8 @@ fz_add_text_char_imp(fz_context *ctx, fz_text_device *dev, fz_text_style *style, * * For both horizontal and vertical motion, trm->{e,f} gives the * bottom left corner of the glyph. - /* In horizontal mode: + * + * In horizontal mode: * + p is bottom left. * + q is the bottom right * In vertical mode: @@ -616,7 +617,7 @@ fz_add_text_char_imp(fz_context *ctx, fz_text_device *dev, fz_text_style *style, q.x = trm->e + adv * dir.x; q.y = trm->f + adv * dir.y; } - else + else { p.x = trm->e - adv * dir.x; p.y = trm->f - adv * dir.y; -- cgit v1.2.3