Skip to content

Commit 0b4718b

Browse files
committed
Report tasks on actual mapped products
1 parent 4cd327f commit 0b4718b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/ifcgeom/Iterator.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ namespace IfcGeom {
185185
tasks_.push_back(res);
186186
}
187187

188-
std::vector<IfcUtil::IfcBaseClass*> products;
189-
for (auto& r : reps) {
190-
std::copy(r.products->begin(), r.products->end(), std::back_inserter(products));
188+
size_t num_products = 0;
189+
for (auto& r : tasks_) {
190+
num_products += r.products.size();
191191
}
192192

193193
/*
@@ -220,7 +220,7 @@ namespace IfcGeom {
220220
}
221221
*/
222222

223-
Logger::Notice("Created " + boost::lexical_cast<std::string>(tasks_.size()) + " tasks for " + boost::lexical_cast<std::string>(products.size()) + " products");
223+
Logger::Notice("Created " + boost::lexical_cast<std::string>(tasks_.size()) + " tasks for " + boost::lexical_cast<std::string>(num_products) + " products");
224224

225225
if (tasks_.size() == 0) {
226226
Logger::Warning("No representations encountered, aborting");

0 commit comments

Comments
 (0)