From 0e7e96f6879f14fca069affce4eeada02f8b6046 Mon Sep 17 00:00:00 2001 From: erg Date: Tue, 19 May 2009 01:25:31 +0000 Subject: [PATCH] Re-order initialization so that variables are defined in verbose mode; simplify code --- lib/pack/pack.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/pack/pack.c b/lib/pack/pack.c index e0d631319..ea530d7e3 100644 --- a/lib/pack/pack.c +++ b/lib/pack/pack.c @@ -1323,13 +1323,14 @@ int getPack(Agraph_t * g, int not_def, int dflt) pack_mode getPackInfo(Agraph_t * g, pack_mode dflt, int dfltMargin, pack_info* pinfo) { - pack_mode pmode = getPackModeInfo(g, dflt, pinfo); + assert (pinfo); + pinfo->margin = getPack(g, dfltMargin, dfltMargin); pinfo->doSplines = 0; - pinfo->mode = pmode; pinfo->fixed = 0; + getPackModeInfo(g, dflt, pinfo); - return pmode; + return pinfo->mode; } -- 2.40.0