From: mjwybrow Date: Fri, 2 Feb 2007 05:52:38 +0000 (+0000) Subject: * src/graphlayout/graphlayout.cpp: For the purposes of graph layout, X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f2c42f9707332e6709445f1fcef2913a1c430e0c;p=inkscape.git * src/graphlayout/graphlayout.cpp: For the purposes of graph layout, ignore connectors that are not attached to an object at one end. This fixes bug #1630101. --- diff --git a/src/graphlayout/graphlayout.cpp b/src/graphlayout/graphlayout.cpp index 132db2db6..30085a00f 100644 --- a/src/graphlayout/graphlayout.cpp +++ b/src/graphlayout/graphlayout.cpp @@ -141,7 +141,13 @@ void graphlayout(GSList const *const items) { } else { iv=items[0]; } - + + if (iv == NULL) { + // The connector is not attached to anything at the + // other end so we should just ignore it. + continue; + } + // What do we do if iv not in nodelookup?!?! map::iterator v_pair=nodelookup.find(iv->id); if(v_pair!=nodelookup.end()) {