Prevent double counting elements in single threaded mode

This commit is contained in:
Thomas Krijnen
2023-03-28 15:20:54 +02:00
parent b108452cb1
commit 05a7aac62e
+3 -1
View File
@@ -584,7 +584,9 @@ namespace IfcGeom {
// Increment the iterator over the list of products using the current
// shape representation
if (task_result_iterator_ == --all_processed_elements_.end()) {
return create();
if (!create()) {
return nullptr;
}
}
task_result_iterator_++;