Fix user created element crash when parsing label

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4701 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
dfochi
2016-09-12 17:11:06 +00:00
parent 4a4b602f47
commit 8e620365e3

View File

@@ -286,6 +286,13 @@ void CustomElement::parseLabels() {
current_location = current_location.parent();
dirLevel++;
}
//User Element without folder treatment
if (i == -1) {
i = 0;
path[i]=current_location.fileName();
current_location = current_location.parent();
dirLevel = 0;
}
// Only Electric labels created so far
//if (current_location.fileName() != "10_electric")