Merge pull request #3697 from mapnik/raster_plugin_fix
Fixes a bug associated with the raster plugin
This commit is contained in:
commit
294a8168da
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue