From: <ha...@us...> - 2008-08-28 12:59:56
|
Revision: 9799 http://jmol.svn.sourceforge.net/jmol/?rev=9799&view=rev Author: hansonr Date: 2008-08-28 12:59:51 +0000 (Thu, 28 Aug 2008) Log Message: ----------- version=11.6.RC12_dev # cml reader fix for not applying symmetry to first model Modified Paths: -------------- trunk/Jmol/src/org/jmol/adapter/readers/xml/XmlCmlReader.java trunk/Jmol/src/org/jmol/viewer/Jmol.properties Modified: trunk/Jmol/src/org/jmol/adapter/readers/xml/XmlCmlReader.java =================================================================== --- trunk/Jmol/src/org/jmol/adapter/readers/xml/XmlCmlReader.java 2008-08-28 12:58:58 UTC (rev 9798) +++ trunk/Jmol/src/org/jmol/adapter/readers/xml/XmlCmlReader.java 2008-08-28 12:59:51 UTC (rev 9799) @@ -206,6 +206,7 @@ state = SYMMETRY; if (atts.containsKey("spaceGroup")) { localSpaceGroupName = (String) atts.get("spaceGroup"); + applySymmetry(); } } else if (name.equals("module")) { moduleCount++; @@ -674,8 +675,9 @@ public void applySymmetry() { if (moduleCount > 0 || !haveMolecule) return; - if (localSpaceGroupName != null) - parent.setSpaceGroupName(localSpaceGroupName); + if (localSpaceGroupName == null) + return; + parent.setSpaceGroupName(localSpaceGroupName); try { parent.applySymmetry(); } catch (Exception e) { Modified: trunk/Jmol/src/org/jmol/viewer/Jmol.properties =================================================================== --- trunk/Jmol/src/org/jmol/viewer/Jmol.properties 2008-08-28 12:58:58 UTC (rev 9798) +++ trunk/Jmol/src/org/jmol/viewer/Jmol.properties 2008-08-28 12:59:51 UTC (rev 9799) @@ -3,6 +3,7 @@ version=11.6.RC12_dev +# cml reader fix for not applying symmetry to first model # translation: added GT._ calls for HTML templates and JS in WebExport # ----------------------------------------------------------------------------- This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |