From eb7ef5039ccaa7fe8af40eaf188bf58891d01a15 Mon Sep 17 00:00:00 2001 From: Blake Thompson Date: Tue, 6 Jun 2017 10:28:21 -0500 Subject: [PATCH] Fixes a bug assocaited with the raster plugin --- plugins/input/raster/raster_featureset.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/input/raster/raster_featureset.cpp b/plugins/input/raster/raster_featureset.cpp index bab865f8d..d3a4680b5 100644 --- a/plugins/input/raster/raster_featureset.cpp +++ b/plugins/input/raster/raster_featureset.cpp @@ -97,7 +97,7 @@ feature_ptr raster_featureset::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;