Skip to content

Commit

Permalink
Added -1 to the OFFSET in the query generated for OGR
Browse files Browse the repository at this point in the history
  • Loading branch information
gerdos82 committed Oct 1, 2019
1 parent 7506203 commit 9b2e7e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapogr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2475,7 +2475,7 @@ static int msOGRFileWhichShapes(layerObj *layer, rectObj rect, msOGRFileInfo *ps

if ( !bOffsetAlreadyAdded && psInfo->bPaging && layer->startindex > 0 ) {
char szOffset[50];
snprintf(szOffset, sizeof(szOffset), " OFFSET %d", layer->startindex);
snprintf(szOffset, sizeof(szOffset), " OFFSET %d", layer->startindex-1);
select = msStringConcatenate(select, szOffset);
}

Expand Down

0 comments on commit 9b2e7e8

Please sign in to comment.