mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Bug fix : crash if an embedded element haven't got directory "import" as parent
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4794 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -332,8 +332,9 @@ namespace autonum
|
||||
int dirLevel = -1;
|
||||
|
||||
//Add location name to path array
|
||||
while(current_location.parent().fileName() != "import")
|
||||
while((current_location.parent() != current_location) && (current_location.parent().fileName() != "import"))
|
||||
{
|
||||
qDebug() << "i = " << i << " " << current_location.fileName();
|
||||
i++;
|
||||
path[i]=current_location.fileName();
|
||||
current_location = current_location.parent();
|
||||
|
||||
Reference in New Issue
Block a user