mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
Correction d'une erreur lors du chargement des elements persos
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@12 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -298,7 +298,7 @@ Element *Schema::elementFromXml(QDomElement &e, QHash<int, Borne *> &table_id_ad
|
|||||||
// cree un element dont le type correspond <20> l'id type
|
// cree un element dont le type correspond <20> l'id type
|
||||||
QString type = e.attribute("type");
|
QString type = e.attribute("type");
|
||||||
QString chemin_fichier;
|
QString chemin_fichier;
|
||||||
if (type.startsWith("perso://")) chemin_fichier = QETApp::commonElementsDir() + type.right(type.size()-8);
|
if (type.startsWith("perso://")) chemin_fichier = QETApp::customElementsDir() + type.right(type.size()-8);
|
||||||
else chemin_fichier = QETApp::commonElementsDir() + type;
|
else chemin_fichier = QETApp::commonElementsDir() + type;
|
||||||
int etat;
|
int etat;
|
||||||
Element *nvel_elmt = new ElementPerso(chemin_fichier, 0, 0, &etat);
|
Element *nvel_elmt = new ElementPerso(chemin_fichier, 0, 0, &etat);
|
||||||
|
|||||||
Reference in New Issue
Block a user