From 9504d18d0a5e6f6401cc5e6da447eb02897ac207 Mon Sep 17 00:00:00 2001 From: Araki Ken Date: Mon, 22 Sep 2014 22:16:07 +0900 Subject: Init pixel_per_{char|line}_i if get_pixel_per_cell() fails. --- image.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'image.c') diff --git a/image.c b/image.c index 09e929c..4f8eb0a 100644 --- a/image.c +++ b/image.c @@ -62,6 +62,10 @@ getCharSize() pixel_per_char = (double)ppc; pixel_per_line = (double)ppl; } + else { + pixel_per_char_i = (int)pixel_per_char; + pixel_per_line_i = (int)pixel_per_line; + } return TRUE; } -- cgit v1.2.3