mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Fix crash when load an old project, wich contain element without her definition embedded, aka "ghost element".
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5550 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -898,6 +898,7 @@ bool Diagram::fromXml(QDomElement &document, QPointF position, bool consider_inf
|
||||
QString debug_message = QString("Diagram::fromXml() : Le chargement de la description de l'element %1 a echoue avec le code d'erreur %2").arg(element_location.path()).arg(state);
|
||||
qDebug() << qPrintable(debug_message);
|
||||
delete nvel_elmt;
|
||||
continue;
|
||||
}
|
||||
|
||||
addItem(nvel_elmt);
|
||||
|
||||
Reference in New Issue
Block a user