store position when exporting to xml, because terminalData will create the document from m_pos

This commit is contained in:
Martin Marmsoler
2020-10-04 09:33:16 +02:00
parent f3368f159d
commit 9153588c94

View File

@@ -72,6 +72,8 @@ QDomElement PartTerminal::toXml(QDomDocument &xml_document) const {
qdo.appendChild(createXmlProperty(xml_document, "uuid", d->m_uuid));
d->m_pos = pos();
// Do not store terminal data in its own child
QDomElement terminalDataElement = d->toXml(xml_document);
for (int i=0; i < terminalDataElement.childNodes().length(); i++) {