filesave does not saves secondary edges bugfix

master
Denes Matetelki 14 years ago
parent e097b51b2c
commit 35e284b8c9

@ -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<Edge *> GraphWidget::edges() const
QList<Edge *> list;
foreach(Node * node, m_nodeList)
list.append(node->edgesFrom());
list.append(node->edgesFrom(false));
return list;
}

Loading…
Cancel
Save