From 32bbccb8fd8faeac3693e6361ab44442c40f130f Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Fri, 29 Jan 2016 16:29:12 -0800 Subject: [PATCH] fix #3276 --- plugins/input/shape/shape_index_featureset.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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_;