mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-29 14:19:59 +01:00
Fix wrong element text value when loading from xml
This commit is contained in:
@@ -190,9 +190,12 @@ void DynamicElementTextItem::fromXml(const QDomElement &dom_elmt)
|
||||
|
||||
//Text
|
||||
QDomElement dom_text = dom_elmt.firstChildElement("text");
|
||||
if (!dom_text.isNull())
|
||||
//Clear the current text.
|
||||
setPlainText("");
|
||||
if (!dom_text.isNull()) {
|
||||
setText(dom_text.text());
|
||||
|
||||
}
|
||||
|
||||
//Info name
|
||||
QDomElement dom_info_name = dom_elmt.firstChildElement("info_name");
|
||||
if(!dom_info_name.isNull())
|
||||
|
||||
Reference in New Issue
Block a user