/[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.12 by smarothy, Thu Nov 25 20:25:17 2004 UTC revision 1.13 by glavaux, Fri Apr 1 16:29:30 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.12  
changed lines
  Added in v.1.13

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