mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-30 12:09:51 +00:00
Prevent double counting elements in single threaded mode
This commit is contained in:
@@ -584,7 +584,9 @@ namespace IfcGeom {
|
|||||||
// Increment the iterator over the list of products using the current
|
// Increment the iterator over the list of products using the current
|
||||||
// shape representation
|
// shape representation
|
||||||
if (task_result_iterator_ == --all_processed_elements_.end()) {
|
if (task_result_iterator_ == --all_processed_elements_.end()) {
|
||||||
return create();
|
if (!create()) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task_result_iterator_++;
|
task_result_iterator_++;
|
||||||
|
|||||||
Reference in New Issue
Block a user