harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apavle...@apache.org
Subject svn commit: r634236 - /harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/image/PixelGrabber.java
Date Thu, 06 Mar 2008 12:08:41 GMT
Author: apavlenko
Date: Thu Mar  6 04:08:35 2008
New Revision: 634236

URL: http://svn.apache.org/viewvc?rev=634236&view=rev
Log:
Patch for HARMONY-5538: [classlib][awt] ArrayIndexOutOfBoundsException in setPixels function
of PixelGrabber, when data type equals DATA_TYPE_INT.

Modified:
    harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/image/PixelGrabber.java

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/image/PixelGrabber.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/image/PixelGrabber.java?rev=634236&r1=634235&r2=634236&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/image/PixelGrabber.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/image/PixelGrabber.java
Thu Mar  6 04:08:35 2008
@@ -153,7 +153,7 @@
         case DATA_TYPE_INT:
             for(int y = 0; y < srcH; y++){
                 for(int x = 0; x < srcW; x++){
-                    iData[realOff++] = cm.getRGB(pixels[srcOff++] & 0xff);
+                    iData[realOff+x] = cm.getRGB(pixels[srcOff+x] & 0xff);
                 }
                 srcOff += srcScan;
                 realOff += scanline;



Mime
View raw message