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; }