From 0b4718b3b5cedce2f69b2602138a72c3588d8fbe Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Tue, 5 Dec 2023 21:12:09 +0100 Subject: [PATCH] Report tasks on actual mapped products --- src/ifcgeom/Iterator.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ifcgeom/Iterator.h b/src/ifcgeom/Iterator.h index b5698a570b..9c31ff8948 100644 --- a/src/ifcgeom/Iterator.h +++ b/src/ifcgeom/Iterator.h @@ -185,9 +185,9 @@ namespace IfcGeom { tasks_.push_back(res); } - std::vector products; - for (auto& r : reps) { - std::copy(r.products->begin(), r.products->end(), std::back_inserter(products)); + size_t num_products = 0; + for (auto& r : tasks_) { + num_products += r.products.size(); } /* @@ -220,7 +220,7 @@ namespace IfcGeom { } */ - Logger::Notice("Created " + boost::lexical_cast(tasks_.size()) + " tasks for " + boost::lexical_cast(products.size()) + " products"); + Logger::Notice("Created " + boost::lexical_cast(tasks_.size()) + " tasks for " + boost::lexical_cast(num_products) + " products"); if (tasks_.size() == 0) { Logger::Warning("No representations encountered, aborting");