From: <ha...@us...> - 2007-10-11 04:23:42
|
Revision: 8399 http://jmol.svn.sourceforge.net/jmol/?rev=8399&view=rev Author: hansonr Date: 2007-10-10 21:23:40 -0700 (Wed, 10 Oct 2007) Log Message: ----------- write xxx.ext Modified Paths: -------------- trunk/Jmol/src/org/jmol/viewer/Eval.java trunk/Jmol/src/org/jmol/viewer/Jmol.properties Modified: trunk/Jmol/src/org/jmol/viewer/Eval.java =================================================================== --- trunk/Jmol/src/org/jmol/viewer/Eval.java 2007-10-10 15:39:46 UTC (rev 8398) +++ trunk/Jmol/src/org/jmol/viewer/Eval.java 2007-10-11 04:23:40 UTC (rev 8399) @@ -7837,9 +7837,14 @@ case Token.identifier: case Token.string: fileName = parameterAsString(pt); - //write filename.xxx gets separated as filename .spt - //write isosurface filename.xxx also - if (fileName.charAt(0) == '.' && (pt == 2 || pt == 3)) { + if (pt == statementLength - 3 && tokAt(pt + 1) == Token.dot) { + //write filename.xxx gets separated as filename .spt + //write isosurface filename.xxx also + fileName += "." + parameterAsString(pt + 2); + } + if (type != "VAR" && pt == 1) + type = "image"; + else if (fileName.charAt(0) == '.' && (pt == 2 || pt == 3)) { fileName = parameterAsString(pt - 1) + fileName; if (type != "VAR" && pt == 2) type = "image"; Modified: trunk/Jmol/src/org/jmol/viewer/Jmol.properties =================================================================== --- trunk/Jmol/src/org/jmol/viewer/Jmol.properties 2007-10-10 15:39:46 UTC (rev 8398) +++ trunk/Jmol/src/org/jmol/viewer/Jmol.properties 2007-10-11 04:23:40 UTC (rev 8399) @@ -2,6 +2,7 @@ # bug fix: semi missing in show orientation message, second part (zyz text) # bug fix: select 0 selects all instead of PDB group 0 +# bug fix: write t.xxx # ----------------------------------------------------------------------------- This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |