From 119f0e3aaa776f6c2548ea4c1c26401136ea733e Mon Sep 17 00:00:00 2001 From: tgdwyer Date: Mon, 13 Feb 2006 03:33:48 +0000 Subject: [PATCH] Correct connector/node check --- src/graphlayout/graphlayout.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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); } } -- 2.30.2