/[classpath]/classpath/java/awt/image/IndexColorModel.java
ViewVC logotype

Diff of /classpath/java/awt/image/IndexColorModel.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7.2.3 by gnu_andrew, Sun Jan 16 02:14:47 2005 UTC revision 1.7.2.4 by gnu_andrew, Sun Apr 3 00:09:10 2005 UTC
# Line 432  public class IndexColorModel extends Col Line 432  public class IndexColorModel extends Col
432     */     */
433    public final int getRGB (int pixel)    public final int getRGB (int pixel)
434    {    {
435      if (pixel < map_size)      if (pixel >= 0 && pixel < map_size)
436              return rgb[pixel];              return rgb[pixel];
437            
438      return 0;      return 0;

Legend:
Removed from v.1.7.2.3  
changed lines
  Added in v.1.7.2.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26