From 069b9804a6c5035ce90cd7480b4a701698c173dd Mon Sep 17 00:00:00 2001 From: giraffedata Date: Fri, 2 Jan 2009 16:57:24 +0000 Subject: fix bug from a few minutes ago git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@810 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/ppm/picttoppm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'converter/ppm') diff --git a/converter/ppm/picttoppm.c b/converter/ppm/picttoppm.c index 04d8cc5f..a367ead5 100644 --- a/converter/ppm/picttoppm.c +++ b/converter/ppm/picttoppm.c @@ -784,10 +784,10 @@ read_rect(struct Rect * const r) { r->bottom = read_word(); r->right = read_word(); - if (r->top < r->bottom || r->right < r->left) + if (r->top > r->bottom || r->right < r->left) dumpRect("Invalid rectangle", *r); - if (r->top < r->bottom) + if (r->top > r->bottom) pm_error("Invalid PICT: a rectangle has a top below its bottom"); if (r->right < r->left) pm_error("Invalid PICT: a rectangle has a right edge " -- cgit 1.4.1