diff options
-rw-r--r-- | src/Simplex_tree/include/gudhi/Simplex_tree/Simplex_tree_iterators.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Simplex_tree/include/gudhi/Simplex_tree/Simplex_tree_iterators.h b/src/Simplex_tree/include/gudhi/Simplex_tree/Simplex_tree_iterators.h index 841b4d49..e4b54c7e 100644 --- a/src/Simplex_tree/include/gudhi/Simplex_tree/Simplex_tree_iterators.h +++ b/src/Simplex_tree/include/gudhi/Simplex_tree/Simplex_tree_iterators.h @@ -259,10 +259,7 @@ class Simplex_tree_boundary_opposite_vertex_simplex_iterator : public boost::ite suffix_.push_back(next_); next_ = sib_->parent(); sib_ = new_sib; - if (suffix_.empty()) - baov_.second = last_; - else - baov_.second = suffix_.back(); + baov_.second = suffix_.back(); } // Most of the storage should be moved to the range, iterators should be light. |