File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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" );
You can’t perform that action at this time.
0 commit comments