From 35e284b8c907a5f44c2c7ae7ebb8f792f21c59da Mon Sep 17 00:00:00 2001 From: Denes Matetelki Date: Fri, 24 Jun 2011 21:40:19 +0200 Subject: [PATCH] filesave does not saves secondary edges bugfix --- graphwidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphwidget.cpp b/graphwidget.cpp index 32d3886..782d576 100644 --- a/graphwidget.cpp +++ b/graphwidget.cpp @@ -136,7 +136,7 @@ void GraphWidget::writeContentToXmlFile(const QString &fileName) root.appendChild(nodes_root); foreach(Node *node, m_nodeList) { - QDomElement cn = doc.createElement("nodes"); + QDomElement cn = doc.createElement("node"); // no need to store ID: parsing order is preorder. // cn.setAttribute( "id", QString::number(m_nodeList.indexOf(node))); @@ -833,7 +833,7 @@ QList GraphWidget::edges() const QList list; foreach(Node * node, m_nodeList) - list.append(node->edgesFrom()); + list.append(node->edgesFrom(false)); return list; }