]> granicus.if.org Git - graphviz/commitdiff
Reset traversal type to default with new BEG_G.
authorEmden Gansner <erg@research.att.com>
Thu, 5 Jan 2012 20:44:44 +0000 (15:44 -0500)
committerEmden Gansner <erg@research.att.com>
Thu, 5 Jan 2012 20:44:44 +0000 (15:44 -0500)
lib/gvpr/gvpr.c

index e9e70c4291989141d1e23998540407130412ece3..a74e9501fe3ba1d11a549be429aa9994a37d256b 100644 (file)
@@ -991,6 +991,7 @@ int gvpr (int argc, char *argv[], gvpropts * uopts)
                    state->curgraph = (Agraph_t*)clone (0, (Agobj_t*)(state->curgraph));
                state->curobj = (Agobj_t *) state->curgraph;
                state->tvroot = 0;
+               state->tvt = TV_flat;
                if (bp->begg_stmt)
                    exeval(xprog->prog, bp->begg_stmt, state);