Merge pull request #3696 from mapnik/raster_limit

Fixes bug in raster plugin
This commit is contained in:
Artem Pavlenko 2017-06-06 17:25:05 +02:00 committed by GitHub
commit 0c1863aa7e
2 changed files with 2 additions and 2 deletions

View file

@ -97,7 +97,7 @@ feature_ptr raster_featureset<LookupPolicy>::next()
// clip to available data
if (x_off >= image_width) x_off = image_width - 1;
if (y_off >= image_width) y_off = image_width - 1;
if (y_off >= image_height) y_off = image_height - 1;
if (x_off < 0) x_off = 0;
if (y_off < 0) y_off = 0;
if (end_x > image_width) end_x = image_width;

@ -1 +1 @@
Subproject commit c06e02ad4e538af7cf7ec00809e5fea3a4de2b86
Subproject commit a8f611e0c84622ce61552f3502e10d3055d8c009