2005-04-19 Guilhem Lavaux <guilhem@kaffe.org>
* java/awt/image/IndexColorModel.java (getRGB): Check if pixel is negative. From-SVN: r98369
This commit is contained in:
parent
a2e0c2a390
commit
005a9448fc
@ -1,3 +1,8 @@
|
||||
2005-04-19 Guilhem Lavaux <guilhem@kaffe.org>
|
||||
|
||||
* java/awt/image/IndexColorModel.java
|
||||
(getRGB): Check if pixel is negative.
|
||||
|
||||
2005-04-19 Michael Koch <konqueror@gmx.de>
|
||||
|
||||
* java/awt/image/RasterOp.java:
|
||||
|
@ -432,7 +432,7 @@ public class IndexColorModel extends ColorModel
|
||||
*/
|
||||
public final int getRGB (int pixel)
|
||||
{
|
||||
if (pixel < map_size)
|
||||
if (pixel >= 0 && pixel < map_size)
|
||||
return rgb[pixel];
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user