Skip to content

Commit

Permalink
Fix mistake with wrong variable in for-loop
Browse files Browse the repository at this point in the history
  • Loading branch information
mvieth committed Nov 26, 2019
1 parent 89fb3f7 commit 6f74845
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions filters/include/pcl/filters/impl/passthrough.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ pcl::PassThrough<PointT>::applyFilterIndices (std::vector<int> &indices)
if (filter_field_name_.empty ())
{
// Only filter for non-finite entries then
for (const auto ii : indices) // ii = input index
for (const auto ii : *indices_) // ii = input index
{
// Non-finite entries are always passed to removed indices
if (!std::isfinite (input_->points[ii].x) ||
Expand Down Expand Up @@ -110,7 +110,7 @@ pcl::PassThrough<PointT>::applyFilterIndices (std::vector<int> &indices)
}

// Filter for non-finite entries and the specified field limits
for (const auto ii : indices) // ii = input index
for (const auto ii : *indices_) // ii = input index
{
// Non-finite entries are always passed to removed indices
if (!std::isfinite (input_->points[ii].x) ||
Expand Down

0 comments on commit 6f74845

Please sign in to comment.