mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
Element editor: fixed a bug when determining the zValue for a newly added part.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@1806 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -1211,7 +1211,7 @@ ElementContent ElementScene::loadContent(const QDomDocument &xml_document, QStri
|
||||
else if (qde.tagName() == "arc") cep = new PartArc (element_editor, 0, 0);
|
||||
else continue;
|
||||
if (QGraphicsItem *qgi = dynamic_cast<QGraphicsItem *>(cep)) {
|
||||
qgi -> setZValue(z++);
|
||||
if (!qgi -> zValue()) qgi -> setZValue(z++);
|
||||
loaded_parts << qgi;
|
||||
}
|
||||
cep -> fromXml(qde);
|
||||
|
||||
Reference in New Issue
Block a user