From a35a064ce44e670cc633c44a6720d597e8399756 Mon Sep 17 00:00:00 2001 From: Blake Thompson Date: Tue, 6 Jun 2017 10:11:53 -0500 Subject: [PATCH] Fixes bug in raster plugin --- plugins/input/raster/raster_featureset.cpp | 2 +- test/data-visual | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/input/raster/raster_featureset.cpp b/plugins/input/raster/raster_featureset.cpp index edea94322..3e004c89a 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; diff --git a/test/data-visual b/test/data-visual index c06e02ad4..a8f611e0c 160000 --- a/test/data-visual +++ b/test/data-visual @@ -1 +1 @@ -Subproject commit c06e02ad4e538af7cf7ec00809e5fea3a4de2b86 +Subproject commit a8f611e0c84622ce61552f3502e10d3055d8c009