changeset 6393:789f4a57496d

8014427: REGRESSION: closed/javax/imageio/plugins/bmp/Write3ByteBgrTest.java fails since 7u25 b09 Reviewed-by: prr, vadim
author bae
date Tue, 14 May 2013 21:05:20 +0400
parents 70d0a0adb21f
children 6788dc17bc5f
files src/share/classes/java/awt/image/Raster.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/awt/image/Raster.java	Tue May 14 20:22:55 2013 +0400
+++ b/src/share/classes/java/awt/image/Raster.java	Tue May 14 21:05:20 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) {