This is an automated email from the ASF dual-hosted git repository.
jsorel pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git
The following commit(s) were added to refs/heads/geoapi-4.0 by this push:
new a234d6d Image : fix getData X axis iteration in getData method
a234d6d is described below
commit a234d6dbfff085cba5c3a4251e1b1b45beb57996
Author: jsorel <[email protected]>
AuthorDate: Mon Dec 9 16:26:18 2019 +0100
Image : fix getData X axis iteration in getData method
---
.../java/org/apache/sis/internal/image/AbstractRenderedImage.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/core/sis-feature/src/main/java/org/apache/sis/internal/image/AbstractRenderedImage.java
b/core/sis-feature/src/main/java/org/apache/sis/internal/image/AbstractRenderedImage.java
index 06786bd..57afe79 100644
---
a/core/sis-feature/src/main/java/org/apache/sis/internal/image/AbstractRenderedImage.java
+++
b/core/sis-feature/src/main/java/org/apache/sis/internal/image/AbstractRenderedImage.java
@@ -60,8 +60,8 @@ public abstract class AbstractRenderedImage implements
RenderedImage {
}
}
- for (int y = 0; y < this.getNumYTiles(); y++) {
- for (int x = 0; x < this.getNumYTiles(); x++) {
+ for (int y = 0, yn = this.getNumYTiles(); y < yn; y++) {
+ for (int x = 0, xn = this.getNumXTiles(); x < xn; x++) {
final Raster rasterIn = getTile(x, y);
rasterOut.getSampleModel()
.setDataElements(