From: <ha...@us...> - 2009-06-12 16:40:17
|
Revision: 11013 http://jmol.svn.sourceforge.net/jmol/?rev=11013&view=rev Author: hansonr Date: 2009-06-12 16:39:43 +0000 (Fri, 12 Jun 2009) Log Message: ----------- version=11.7.42_dev # label.all("...") # new feature: print {xxx}.label.all("") -- forces array even if only one atom (like .label.all) Modified Paths: -------------- trunk/Jmol/src/org/jmol/viewer/ScriptEvaluator.java Modified: trunk/Jmol/src/org/jmol/viewer/ScriptEvaluator.java =================================================================== --- trunk/Jmol/src/org/jmol/viewer/ScriptEvaluator.java 2009-06-12 16:33:49 UTC (rev 11012) +++ trunk/Jmol/src/org/jmol/viewer/ScriptEvaluator.java 2009-06-12 16:39:43 UTC (rev 11013) @@ -7830,7 +7830,7 @@ getToken(iToken + 2); } } - allowMathFunc &= (tokAt(iToken + 1) == Token.leftparen); + allowMathFunc &= (tokAt(iToken + 1) == Token.leftparen || token.intValue == Token.function); if (!rpn.addOp(token, allowMathFunc)) error(ERROR_invalidArgument); i = iToken; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |