From: ellson Date: Mon, 18 Jul 2005 01:34:33 +0000 (+0000) Subject: fix problem with "nop" layouts X-Git-Tag: LAST_LIBGRAPH~32^2~7418 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b4d690d03e6b1f1d1078abf3c3766015307b8f9a;p=graphviz fix problem with "nop" layouts --- diff --git a/tclpkg/tcldot/tcldot.c b/tclpkg/tcldot/tcldot.c index 87cc8b82e..bf5c8d6bd 100644 --- a/tclpkg/tcldot/tcldot.c +++ b/tclpkg/tcldot/tcldot.c @@ -564,7 +564,14 @@ static void tcldot_layout(GVC_t *gvc, Agraph_t * g, char *engine) rc = gvlayout_select(gvc, "neato"); } else { - rc = gvlayout_select(gvc, engine); + if (strcasecmp(engine, "nop") == 0) { + Nop = 2; + PSinputscale = POINTS_PER_INCH; + rc = gvlayout_select(gvc, "neato"); + } + else { + rc = gvlayout_select(gvc, engine); + } if (rc == NO_SUPPORT) rc = gvlayout_select(gvc, "dot"); }