Index: trunk/modules/awt/src/main/java/common/java/awt/image/ComponentSampleModel.java =================================================================== --- trunk/modules/awt/src/main/java/common/java/awt/image/ComponentSampleModel.java (revision 488730) +++ trunk/modules/awt/src/main/java/common/java/awt/image/ComponentSampleModel.java (working copy) @@ -331,7 +331,8 @@ @Override public int[] getPixels(int x, int y, int w, int h, int iArray[], DataBuffer data) { - if (x < 0 || y < 0 || x + w > this.width || y + h > this.height) { + if (x < 0 || y < 0 || x > this.width || x + w > this.width + || y > this.height || y + h > this.height) { // awt.63=Coordinates are not in bounds throw new ArrayIndexOutOfBoundsException(Messages.getString("awt.63")); //$NON-NLS-1$ }