From: <ha...@us...> - 2009-06-23 14:30:19
|
Revision: 11082 http://jmol.svn.sourceforge.net/jmol/?rev=11082&view=rev Author: hansonr Date: 2009-06-23 14:30:12 +0000 (Tue, 23 Jun 2009) Log Message: ----------- Modified Paths: -------------- trunk/Jmol/src/org/jmol/viewer/ScriptCompiler.java Modified: trunk/Jmol/src/org/jmol/viewer/ScriptCompiler.java =================================================================== --- trunk/Jmol/src/org/jmol/viewer/ScriptCompiler.java 2009-06-23 04:26:53 UTC (rev 11081) +++ trunk/Jmol/src/org/jmol/viewer/ScriptCompiler.java 2009-06-23 14:30:12 UTC (rev 11082) @@ -586,6 +586,7 @@ forceFlowEnd(flowContext.token); isEndOfCommand = true; cchToken = 0; + ichCurrentCommand = ichToken; lineCurrent--; return CONTINUE; } @@ -2022,7 +2023,7 @@ } private boolean handleError() { - errorLine = script.substring(ichCurrentCommand, ichEnd == ichCurrentCommand ? ichToken : ichEnd); + errorLine = script.substring(ichCurrentCommand, ichEnd <= ichCurrentCommand ? ichToken : ichEnd); String lineInfo = (ichToken < ichEnd ? errorLine.substring(0, ichToken - ichCurrentCommand) + " >>>> " + errorLine.substring(ichToken - ichCurrentCommand) : errorLine) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |