From c827c2b6e47835ba576ae37a7b8bf7dff3b2c47f Mon Sep 17 00:00:00 2001 From: ellson Date: Mon, 16 Jan 2006 19:44:23 +0000 Subject: [PATCH] Add support for a -Glandscape boolean. Now landscape can be set with: -Glandscape -Gorientation=landscape -Grotat=90 --- lib/common/input.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/common/input.c b/lib/common/input.c index e476183d1..539dbeef6 100644 --- a/lib/common/input.c +++ b/lib/common/input.c @@ -556,12 +556,13 @@ void graph_init(graph_t * g, bool use_rankdir) getdouble(g, "nodefactor", &Nodefactor); GD_drawing(g)->centered = mapbool(agget(g, "center")); + if ((p = agget(g, "rotate"))) GD_drawing(g)->landscape = (atoi(p) == 90); - else { /* today we learned the importance of backward compatibilty */ - if ((p = agget(g, "orientation"))) - GD_drawing(g)->landscape = ((p[0] == 'l') || (p[0] == 'L')); - } + else if ((p = agget(g, "orientation"))) + GD_drawing(g)->landscape = ((p[0] == 'l') || (p[0] == 'L')); + else if ((p = agget(g, "landscape"))) + GD_drawing(g)->landscape = mapbool(p); p = agget(g, "clusterrank"); CL_type = maptoken(p, rankname, rankcode); -- 2.40.0