mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +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));
|
qdo.appendChild(createXmlProperty(xml_document, "uuid", d->m_uuid));
|
||||||
|
|
||||||
|
d->m_pos = pos();
|
||||||
|
|
||||||
// Do not store terminal data in its own child
|
// Do not store terminal data in its own child
|
||||||
QDomElement terminalDataElement = d->toXml(xml_document);
|
QDomElement terminalDataElement = d->toXml(xml_document);
|
||||||
for (int i=0; i < terminalDataElement.childNodes().length(); i++) {
|
for (int i=0; i < terminalDataElement.childNodes().length(); i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user