mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-03 13:28:19 +00:00
compare style on collection
This commit is contained in:
@@ -219,7 +219,12 @@ namespace {
|
|||||||
return a_lt_b;
|
return a_lt_b;
|
||||||
}
|
}
|
||||||
// Vectors equal, compare matrix (in case of mapped items).
|
// 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 {
|
} else {
|
||||||
return a.children.size() < b.children.size();
|
return a.children.size() < b.children.size();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user