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:
parent
99141fa5e5
commit
46ee60b398
2 changed files with 2 additions and 2 deletions
plugins/input/shape
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue