From: ellson Date: Fri, 14 Mar 2008 17:25:01 +0000 (+0000) Subject: fix logic error, although it doesn't actually result in a problem X-Git-Tag: LAST_LIBGRAPH~32^2~4503 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be188a231d83ca538769df570d0ea9580e45d291;p=graphviz fix logic error, although it doesn't actually result in a problem --- diff --git a/lib/common/emit.c b/lib/common/emit.c index ec96800d2..9dd5ca772 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -1966,7 +1966,7 @@ static void init_job_viewport(GVJ_t * job, graph_t * g) P2PF(GD_drawing(g)->size, size); if ((size.x < sz.x) || (size.y < sz.y) /* drawing is too big... */ || ((GD_drawing(g)->filled) /* or ratio=filled requested and ... */ - && (size.x > sz.x) && (size.y > sz.y))) /* drawing is too small... */ + && ((size.x > sz.x) || (size.y > sz.y)))) /* drawing is too small... */ Z = MIN(size.x/sz.x, size.y/sz.y); }