From: <ha...@us...> - 2007-05-31 17:33:19
|
Revision: 7822 http://svn.sourceforge.net/jmol/?rev=7822&view=rev Author: hansonr Date: 2007-05-31 10:33:17 -0700 (Thu, 31 May 2007) Log Message: ----------- 11.1.45 bug fix for app not writing state from export menu Modified Paths: -------------- trunk/Jmol/src/org/openscience/jmol/app/Jmol.java Modified: trunk/Jmol/src/org/openscience/jmol/app/Jmol.java =================================================================== --- trunk/Jmol/src/org/openscience/jmol/app/Jmol.java 2007-05-31 07:54:33 UTC (rev 7821) +++ trunk/Jmol/src/org/openscience/jmol/app/Jmol.java 2007-05-31 17:33:17 UTC (rev 7822) @@ -1463,7 +1463,13 @@ file = exportChooser.getSelectedFile(); if (file != null) { ImageCreator c = new ImageCreator(viewer, status); - c.createImage(file.getAbsolutePath(), it.getType(), it.getQuality()); + int iQuality = it.getQuality(); + String sType = it.getType(); + if (sType.equals("SPT")) { + sType = viewer.getStateInfo(); + iQuality = Integer.MIN_VALUE; + } + c.createImage(file.getAbsolutePath(), sType, iQuality); } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |