]> granicus.if.org Git - graphviz/commitdiff
fix logic error, although it doesn't actually result in a problem
authorellson <devnull@localhost>
Fri, 14 Mar 2008 17:25:01 +0000 (17:25 +0000)
committerellson <devnull@localhost>
Fri, 14 Mar 2008 17:25:01 +0000 (17:25 +0000)
lib/common/emit.c

index ec96800d25a8cdb68e33646ee9d95ecae041d9ff..9dd5ca772e8b49b669c519db5c31aa462c8409ce 100644 (file)
@@ -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);
     }