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:
xavierqet
2006-11-04 11:06:07 +00:00
parent 2ee25ee7b2
commit f0a0eb6661

View File

@@ -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
QString type = e.attribute("type");
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;
int etat;
Element *nvel_elmt = new ElementPerso(chemin_fichier, 0, 0, &etat);