From: <ha...@us...> - 2007-05-05 15:23:45
|
Revision: 7586 http://svn.sourceforge.net/jmol/?rev=7586&view=rev Author: hansonr Date: 2007-05-05 08:23:44 -0700 (Sat, 05 May 2007) Log Message: ----------- 11.1.32 fix for PdbReader failing on short HET lines. Modified Paths: -------------- trunk/Jmol/src/org/jmol/adapter/readers/cifpdb/PdbReader.java Modified: trunk/Jmol/src/org/jmol/adapter/readers/cifpdb/PdbReader.java =================================================================== --- trunk/Jmol/src/org/jmol/adapter/readers/cifpdb/PdbReader.java 2007-05-05 15:23:00 UTC (rev 7585) +++ trunk/Jmol/src/org/jmol/adapter/readers/cifpdb/PdbReader.java 2007-05-05 15:23:44 UTC (rev 7586) @@ -492,10 +492,10 @@ } void het() { + if (line.length() < 30) + return; if (htHetero == null) htHetero = new Hashtable(); - if (line.length() < 30) - return; String groupName = parseToken(line, 7, 10); if (htHetero.contains(groupName)) return; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |