From: <ha...@us...> - 2007-02-24 04:12:26
|
Revision: 6924 http://svn.sourceforge.net/jmol/?rev=6924&view=rev Author: hansonr Date: 2007-02-23 20:12:24 -0800 (Fri, 23 Feb 2007) Log Message: ----------- 11.1.14 x = 0 + {xxx}[3] bug fix Modified Paths: -------------- trunk/Jmol/src/org/jmol/viewer/Token.java Modified: trunk/Jmol/src/org/jmol/viewer/Token.java =================================================================== --- trunk/Jmol/src/org/jmol/viewer/Token.java 2007-02-24 00:13:05 UTC (rev 6923) +++ trunk/Jmol/src/org/jmol/viewer/Token.java 2007-02-24 04:12:24 UTC (rev 6924) @@ -205,7 +205,7 @@ String[] list = (String[]) x.value; if (i == Integer.MAX_VALUE) return list.length; - case Token.string: + case Token.string: String s = sValue(x); if (s.equalsIgnoreCase("true")) return 1; @@ -238,7 +238,7 @@ String[] list = (String[]) x.value; i = x.intValue; if (i != Integer.MAX_VALUE) - return (i < 0 || i >= list.length ? "" : list[i]); + return (i < 1 || i > list.length ? "" : list[i - 1]); StringBuffer sb = new StringBuffer(); for (i = 0; i < list.length; i++) sb.append(list[i] + "\n"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |