From: <kon...@us...> - 2010-10-29 02:38:25
|
Revision: 1147 http://cishell.svn.sourceforge.net/cishell/?rev=1147&view=rev Author: kongchinhua Date: 2010-10-29 02:38:19 +0000 (Fri, 29 Oct 2010) Log Message: ----------- Fixed index overflow issue Modified Paths: -------------- trunk/core/org.cishell.utilities/src/org/cishell/utilities/color/ColorSchema.java Modified: trunk/core/org.cishell.utilities/src/org/cishell/utilities/color/ColorSchema.java =================================================================== --- trunk/core/org.cishell.utilities/src/org/cishell/utilities/color/ColorSchema.java 2010-10-28 22:16:06 UTC (rev 1146) +++ trunk/core/org.cishell.utilities/src/org/cishell/utilities/color/ColorSchema.java 2010-10-29 02:38:19 UTC (rev 1147) @@ -40,7 +40,7 @@ * index */ public Color get(int index) { - if (index > this.totalColors) { + if (index >= this.totalColors) { return getDefaultColor(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |