From: tgdwyer Date: Mon, 13 Feb 2006 03:33:48 +0000 (+0000) Subject: Correct connector/node check X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=119f0e3aaa776f6c2548ea4c1c26401136ea733e;p=inkscape.git Correct connector/node check --- diff --git a/src/graphlayout/graphlayout.cpp b/src/graphlayout/graphlayout.cpp index 9828e22fe..a99fdd720 100644 --- a/src/graphlayout/graphlayout.cpp +++ b/src/graphlayout/graphlayout.cpp @@ -14,6 +14,7 @@ #include #ifdef HAVE_BOOST_GRAPH_LIB +#include "sp-path.h" #include "sp-item.h" #include "sp-item-transform.h" #include "sp-conn-end-pair.h" @@ -63,7 +64,6 @@ void graphlayout(GSList const *const items) { Graph g; - std::cout<<"Building graph with "< nodelookup; @@ -73,7 +73,13 @@ void graphlayout(GSList const *const items) { { SPItem *u=*it; std::cout<<"id:"<id<id,"path",4)) { + SPPath *path = NULL; + if(SP_IS_PATH(u)) { + path = SP_PATH(u); + } + bool isConn = path && path->connEndPair.isAutoRoutingConn(); + if(!isConn) { + std::cout<<" is a node."<id]=add_vertex(g); } }