fix row_limit behavior in shape.input to stop reading when count = row_limit, not just when count > row_limit

This commit is contained in:
Dane Springmeyer 2012-11-28 14:15:53 -08:00
parent 99141fa5e5
commit 46ee60b398
2 changed files with 2 additions and 2 deletions

View file

@ -57,7 +57,7 @@ shape_featureset<filterT>::shape_featureset(filterT const& filter,
template <typename filterT>
feature_ptr shape_featureset<filterT>::next()
{
if (row_limit_ && count_ > row_limit_)
if (row_limit_ && count_ >= row_limit_)
{
return feature_ptr();
}

View file

@ -75,7 +75,7 @@ shape_index_featureset<filterT>::shape_index_featureset(filterT const& filter,
template <typename filterT>
feature_ptr shape_index_featureset<filterT>::next()
{
if (row_limit_ && count_ > row_limit_)
if (row_limit_ && count_ >= row_limit_)
{
return feature_ptr();
}