From 6685aa16d39e6a598c929311ae74e211f540a8c5 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Tue, 1 Sep 2020 12:21:39 +0200 Subject: [PATCH] compare style on collection --- src/ifcgeom/taxonomy.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ifcgeom/taxonomy.cpp b/src/ifcgeom/taxonomy.cpp index 3457068a7c..a6eb936920 100644 --- a/src/ifcgeom/taxonomy.cpp +++ b/src/ifcgeom/taxonomy.cpp @@ -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(); }