8014427: REGRESSION: closed/javax/imageio/plugins/bmp/Write3ByteBgrTest.java fails since 7u25 b09
authorbae
Tue, 14 May 2013 21:10:47 +0400
changeset 18268 f7eca72008d4
parent 18267 1ee4c9ea5d06
child 18269 349b1570d2cb
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
--- a/jdk/src/share/classes/java/awt/image/Raster.java	Tue May 14 05:55:10 2013 -0700
+++ b/jdk/src/share/classes/java/awt/image/Raster.java	Tue May 14 21:10:47 2013 +0400
@@ -392,7 +392,8 @@
             }
         }
         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) {