diff --git a/plugins/input/shape/shape_index_featureset.cpp b/plugins/input/shape/shape_index_featureset.cpp index bb9da6ecb..aa91b085e 100644 --- a/plugins/input/shape/shape_index_featureset.cpp +++ b/plugins/input/shape/shape_index_featureset.cpp @@ -87,7 +87,7 @@ feature_ptr shape_index_featureset::next() int offset = itr_->offset; shape_ptr_->move_to(offset); std::vector> parts; - while (itr_->offset == offset && itr_ != offsets_.end()) + while (itr_ != offsets_.end() && itr_->offset == offset) { if (itr_->start!= -1) parts.emplace_back(itr_->start, itr_->end); ++itr_;