From a99770a17a87358e6b35b5b6af138fb0031ae597 Mon Sep 17 00:00:00 2001 From: Tim Dwyer Date: Mon, 13 Feb 2006 03:33:48 +0000 Subject: Correct connector/node check (bzr r123) --- src/graphlayout/graphlayout.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/graphlayout/graphlayout.cpp') 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); } } -- cgit v1.2.3