From 9411edc759161ab3bbc437f404026c713a4636d9 Mon Sep 17 00:00:00 2001 From: Andrew Brygin Date: Tue, 14 May 2013 21:10:47 +0400 Subject: [PATCH] 8014427: REGRESSION: closed/javax/imageio/plugins/bmp/Write3ByteBgrTest.java fails since 7u25 b09 Reviewed-by: prr --- jdk/src/share/classes/java/awt/image/Raster.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jdk/src/share/classes/java/awt/image/Raster.java b/jdk/src/share/classes/java/awt/image/Raster.java index 7e414fe506f..4fd0f6148ef 100644 --- a/jdk/src/share/classes/java/awt/image/Raster.java +++ b/jdk/src/share/classes/java/awt/image/Raster.java @@ -392,7 +392,8 @@ public class Raster { } } int banks = maxBank + 1; - int size = scanlineStride * (h - 1) + // fisrt (h - 1) scans + int size = maxBandOff + + scanlineStride * (h - 1) + // fisrt (h - 1) scans w; // last scan switch(dataType) {