fixed a critical bug in rotating

This commit is contained in:
tangxifan 2019-05-28 17:55:09 -06:00
parent 9cc5518d5a
commit 5ed076dfb4
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ std::vector<size_t> RRChan::get_segment_ids() const {
std::vector<size_t>::iterator it;
/* Try to find the node_segment id in the list */
it = find(seg_list.begin(), seg_list.end(), node_segments_[inode]);
if ( it != seg_list.end() ) {
if ( it == seg_list.end() ) {
/* Not found, add it to the list */
seg_list.push_back(node_segments_[inode]);
}