mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-14 11:24:19 +00:00
compare style on collection
This commit is contained in:
@@ -219,7 +219,12 @@ namespace {
|
||||
return a_lt_b;
|
||||
}
|
||||
// Vectors equal, compare matrix (in case of mapped items).
|
||||
return compare(a.matrix, b.matrix);
|
||||
int matrix_order = less_to_order(a.matrix, b.matrix);
|
||||
if (matrix_order == 0) {
|
||||
return compare(a.surface_style, b.surface_style);
|
||||
} else {
|
||||
return matrix_order == -1;
|
||||
}
|
||||
} else {
|
||||
return a.children.size() < b.children.size();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user