mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-06 05:10:52 +01:00
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user