[kaffe] CVS kaffe (guilhem): Fixlet for java/awt/image

Kaffe CVS cvs-commits at kaffe.org
Fri Apr 1 12:42:10 PST 2005


PatchSet 5639 
Date: 2005/04/01 20:37:33
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Fixlet for java/awt/image

Members: 
	ChangeLog:1.3809->1.3810 
	libraries/javalib/java/awt/image/IndexColorModel.java:1.7->1.8 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3809 kaffe/ChangeLog:1.3810
--- kaffe/ChangeLog:1.3809	Fri Apr  1 20:15:26 2005
+++ kaffe/ChangeLog	Fri Apr  1 20:37:33 2005
@@ -7,6 +7,11 @@
 
 2005-04-01  Guilhem Lavaux  <guilhem at kaffe.org>
 
+	* java/awt/image/IndexColorModel.java
+	(getRGB): Check if pixel is negative.
+
+2005-04-01  Guilhem Lavaux  <guilhem at kaffe.org>
+
 	* kaffe/kaffevm/systems/unix-pthreads/thread-impl.c
 	(jthread_suspendall, jthread_unsuspendall): Check whether the thread
 	subsystem has been initialized as some architecture needs to invoke it
Index: kaffe/libraries/javalib/java/awt/image/IndexColorModel.java
diff -u kaffe/libraries/javalib/java/awt/image/IndexColorModel.java:1.7 kaffe/libraries/javalib/java/awt/image/IndexColorModel.java:1.8
--- kaffe/libraries/javalib/java/awt/image/IndexColorModel.java:1.7	Fri Dec  3 09:16:02 2004
+++ kaffe/libraries/javalib/java/awt/image/IndexColorModel.java	Fri Apr  1 20:37:37 2005
@@ -432,7 +432,7 @@
    */
   public final int getRGB (int pixel)
   {
-    if (pixel < map_size)
+    if (pixel >= 0 && pixel < map_size)
 	    return rgb[pixel];
     
     return 0;




More information about the kaffe mailing list