From: ellson Date: Fri, 14 Mar 2008 17:29:30 +0000 (+0000) Subject: revert previous change - but add more comments X-Git-Tag: LAST_LIBGRAPH~32^2~4502 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fda23d40ea8d2e3c047b588d5cc064e48971bca4;p=graphviz revert previous change - but add more comments --- diff --git a/lib/common/emit.c b/lib/common/emit.c index 9dd5ca772..e5d352fcc 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -1964,9 +1964,9 @@ static void init_job_viewport(GVJ_t * job, graph_t * g) Z = 1.0; if (GD_drawing(g)->size.x > 0) { /* graph size was given by user... */ P2PF(GD_drawing(g)->size, size); - if ((size.x < sz.x) || (size.y < sz.y) /* drawing is too big... */ + if ((size.x < sz.x) || (size.y < sz.y) /* drawing is too big (in either axi) ... */ || ((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 (in both axis) ... */ Z = MIN(size.x/sz.x, size.y/sz.y); }