From: Tobias Oetiker Date: Thu, 5 Jan 2006 20:07:41 +0000 (+0000) Subject: remove redundant if statement in rrd_gfx pdf code ... -- NormW X-Git-Tag: 1.2.13~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bbd7e55c668908ea35b05817460b2c57ff7f569;p=thirdparty%2Frrdtool-1.x.git remove redundant if statement in rrd_gfx pdf code ... -- NormW git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@739 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_gfx.c b/src/rrd_gfx.c index c56211da..5841d508 100644 --- a/src/rrd_gfx.c +++ b/src/rrd_gfx.c @@ -2034,9 +2034,9 @@ static void pdf_put_string_contents_wide(pdf_buffer *buf, const afm_char *text) default: if (ch > 255) { pdf_put_char(buf, '?'); - } else if (ch >= 126 || ch < 32) { + } else if (ch > 125 || ch < 32) { pdf_put_char(buf, ch); - } else if (ch >= 0 && ch <= 255) { + } else { char tmp[10]; snprintf(tmp, sizeof(tmp), "\\%03o", (int)ch); pdf_puts(buf, tmp);