Skip to content

Commit

Permalink
Merge pull request #123 from bjornpiltz/patch-1
Browse files Browse the repository at this point in the history
Fix bug in Bounds::contains(Bounds).
  • Loading branch information
mloskot committed Aug 1, 2017
2 parents f873da4 + 8ea4c13 commit c9ef072
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions include/liblas/bounds.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,10 +430,8 @@ bool overlaps(Bounds const& other) const
bool contains(Bounds const& other) const
{
for (size_type i = 0; i < dimension(); i++) {
if ( ranges[i].contains(other.ranges[i]) )
return true;
else // As soon as it is not contains, we're false
return false;
if ( !ranges[i].contains(other.ranges[i]) )
return false; // As soon as it is not contains, we're false
}
return true;
}
Expand Down

0 comments on commit c9ef072

Please sign in to comment.