fixed a critical bug in rotating
This commit is contained in:
parent
9cc5518d5a
commit
5ed076dfb4
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue