mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
only write author-information, if available
This commit is contained in:
@@ -478,10 +478,12 @@ const QDomDocument ElementScene::toXml(bool all_parts)
|
||||
root.appendChild(element_info);
|
||||
}
|
||||
|
||||
//complementary information about the element
|
||||
QDomElement informations_element = xml_document.createElement("informations");
|
||||
root.appendChild(informations_element);
|
||||
informations_element.appendChild(xml_document.createTextNode(m_element_data.m_drawing_information.trimmed()));
|
||||
//complementary information about the element, when available
|
||||
if (!(m_element_data.m_drawing_information.trimmed().isEmpty())) {
|
||||
QDomElement informations_element = xml_document.createElement("informations");
|
||||
root.appendChild(informations_element);
|
||||
informations_element.appendChild(xml_document.createTextNode(m_element_data.m_drawing_information.trimmed()));
|
||||
}
|
||||
|
||||
QDomElement description = xml_document.createElement("description");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user