diff options
| author | mjwybrow <mjwybrow@users.sourceforge.net> | 2007-02-02 05:52:38 +0000 |
|---|---|---|
| committer | mjwybrow <mjwybrow@users.sourceforge.net> | 2007-02-02 05:52:38 +0000 |
| commit | d883c65af88eb8b65dabce14e82a147248acbab6 (patch) | |
| tree | 6078a65f7fe1a5ab53a29bd40c80a9de85409d2a /src/graphlayout | |
| parent | update 2424 translated messages. (diff) | |
| download | inkscape-d883c65af88eb8b65dabce14e82a147248acbab6.tar.gz inkscape-d883c65af88eb8b65dabce14e82a147248acbab6.zip | |
* 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.
(bzr r2311)
Diffstat (limited to 'src/graphlayout')
| -rw-r--r-- | src/graphlayout/graphlayout.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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<string,unsigned>::iterator v_pair=nodelookup.find(iv->id); if(v_pair!=nodelookup.end()) { |
