From: <ha...@us...> - 2011-10-28 15:18:03
|
Revision: 16418 http://jmol.svn.sourceforge.net/jmol/?rev=16418&view=rev Author: hansonr Date: 2011-10-28 15:17:56 +0000 (Fri, 28 Oct 2011) Log Message: ----------- 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 2011-10-28 15:13:29 UTC (rev 16417) +++ trunk/Jmol/src/org/jmol/adapter/readers/cifpdb/PdbReader.java 2011-10-28 15:17:56 UTC (rev 16418) @@ -107,7 +107,6 @@ private StringBuffer pdbHeader; private int configurationPtr = Integer.MIN_VALUE; private boolean applySymmetry; -private boolean tlsSeen; @Override protected void initializeReader() throws Exception { @@ -220,7 +219,7 @@ remark290(); return false; } - if (!tlsSeen && line.indexOf("TLS DETAILS") > 0) { + if (line.indexOf("TLS DETAILS") > 0) { return remarkTls(); } checkLineForScript(); @@ -1223,7 +1222,6 @@ Map<String, Object> tlsGroup = null; List<Map<String, Object>> ranges = null; Map<String, Object> range = null; - tlsSeen = true; String remark = line.substring(0, 11); while (readLine() != null && line.startsWith(remark)) { try { @@ -1341,7 +1339,7 @@ groups.put("groups", tlsGroups); tlsModels.add(groups); } - return false; + return (nGroups < 1); } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |