Fix : fill the storey property of an Element with NULL when we don't find any IfcBuildingStorey parent

This commit is contained in:
Balleux Benjamin
2017-05-09 14:40:23 +02:00
parent e3e4fba63a
commit a6ffa7fc42
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -132,12 +132,12 @@ private:
if (parent1 == NULL || parent2 == NULL)
{
bool res = (def_obj1.unique_id < def_obj2.unique_id ? true : false);
bool res = (parent1 == NULL) ? true : false;
return res;
}
else
{
bool res = parent1->name() < parent2->name() ? true : false;
bool res = parent1->name().compare(parent2->name()) > 0 ? true : false;
return res;
}
}