From: <ha...@us...> - 2007-05-05 15:26:43
|
Revision: 7587 http://svn.sourceforge.net/jmol/?rev=7587&view=rev Author: hansonr Date: 2007-05-05 08:26:42 -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:44 UTC (rev 7586) +++ trunk/Jmol/src/org/jmol/adapter/readers/cifpdb/PdbReader.java 2007-05-05 15:26:42 UTC (rev 7587) @@ -499,7 +499,7 @@ String groupName = parseToken(line, 7, 10); if (htHetero.contains(groupName)) return; - String hetName = line.substring(30, Math.min(line.length(),70)).trim(); + String hetName = parseTrimmed(line, 30, 70); htHetero.put(groupName, hetName); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |