Skip to content

Commit

Permalink
Fix incorrect indexing into fdw list
Browse files Browse the repository at this point in the history
  • Loading branch information
pramsey committed May 13, 2020
1 parent 65f54f4 commit 7785af5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ogr_fdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ ogrSpatialFilterFromList(const List* lst)
spatial_filter->minx = floatVal(lsecond(lst));
spatial_filter->miny = floatVal(lthird(lst));
spatial_filter->maxx = floatVal(lfourth(lst));
spatial_filter->maxy = floatVal(list_nth(lst, 5));
spatial_filter->maxy = floatVal(list_nth(lst, 4)); /* list_nth counts from zero */
return spatial_filter;
}

Expand Down

0 comments on commit 7785af5

Please sign in to comment.