From: <ha...@us...> - 2007-01-12 04:02:26
|
Revision: 6639 http://svn.sourceforge.net/jmol/?rev=6639&view=rev Author: hansonr Date: 2007-01-11 20:02:24 -0800 (Thu, 11 Jan 2007) Log Message: ----------- Modified Paths: -------------- trunk/Jmol/src/org/jmol/viewer/Viewer.java Modified: trunk/Jmol/src/org/jmol/viewer/Viewer.java =================================================================== --- trunk/Jmol/src/org/jmol/viewer/Viewer.java 2007-01-12 03:57:25 UTC (rev 6638) +++ trunk/Jmol/src/org/jmol/viewer/Viewer.java 2007-01-12 04:02:24 UTC (rev 6639) @@ -4449,6 +4449,8 @@ while ((i = text.indexOf("%{")) >= 0) { i0 = i + 2; i = text.indexOf("}", i0); + if (i < 0) + return text; String name = text.substring(i0, i); text = text.substring(0, i0 - 2) + (name.length() == 0 ? "" : name.charAt(0) == '(' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |