From: Emden R. Gansner Date: Thu, 15 Aug 2013 19:01:30 +0000 (-0400) Subject: Check for position info in graph X-Git-Tag: LAST_LIBGRAPH~32^2~78 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b119380d84fac0fd50e0215904835ed85012afc5;p=graphviz Check for position info in graph --- diff --git a/cmd/mingle/minglemain.c b/cmd/mingle/minglemain.c index 90c3705e9..1e87c1c65 100644 --- a/cmd/mingle/minglemain.c +++ b/cmd/mingle/minglemain.c @@ -139,6 +139,10 @@ bundle (Agraph_t* g, opts_t* opts) fprintf (stderr, "Error: could not convert graph %s (%s) into matrix\n", agnameof(g), fname); return 1; } + if (x == NULL) { + fprintf (stderr, "Error: graph %s (%s) has missing \"pos\" information\n", agnameof(g), fname); + return 1; + } A = SparseMatrix_symmetrize(A, TRUE); ia = A->ia; ja = A->ja;