From: <ha...@us...> - 2010-04-12 20:18:29
|
Revision: 12835 http://jmol.svn.sourceforge.net/jmol/?rev=12835&view=rev Author: hansonr Date: 2010-04-12 20:18:22 +0000 (Mon, 12 Apr 2010) Log Message: ----------- version=12.0.RC5_dev # bug fix: resolver could consider some CUBE files to be MOL files Modified Paths: -------------- trunk/Jmol/src/org/jmol/adapter/smarter/Resolver.java trunk/Jmol/src/org/jmol/viewer/Jmol.properties Modified: trunk/Jmol/src/org/jmol/adapter/smarter/Resolver.java =================================================================== --- trunk/Jmol/src/org/jmol/adapter/smarter/Resolver.java 2010-04-12 20:04:37 UTC (rev 12834) +++ trunk/Jmol/src/org/jmol/adapter/smarter/Resolver.java 2010-04-12 20:18:22 UTC (rev 12835) @@ -769,7 +769,7 @@ private static boolean checkMol(String[] lines) { String line4trimmed = ("X" + lines[3]).trim(); - if (line4trimmed.length() < 7) + if (line4trimmed.length() < 7 || line4trimmed.indexOf(".") >= 0) return false; if (line4trimmed.endsWith("V2000") || line4trimmed.endsWith("v2000")) return true; Modified: trunk/Jmol/src/org/jmol/viewer/Jmol.properties =================================================================== --- trunk/Jmol/src/org/jmol/viewer/Jmol.properties 2010-04-12 20:04:37 UTC (rev 12834) +++ trunk/Jmol/src/org/jmol/viewer/Jmol.properties 2010-04-12 20:18:22 UTC (rev 12835) @@ -3,6 +3,7 @@ version=12.0.RC5_dev +# bug fix: resolver could consider some CUBE files to be MOL files # bug fix: deleting atoms or bonds does not reset molecules # bug fix: GOTO command broken within IF construct # bug fix: restrict ... with dots ON causes NPE This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |