mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
store position when exporting to xml, because terminalData will create the document from m_pos
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user