JAL-3049 redo (part of) commit 92bc328
[jalview.git] / src / MCview / Atom.java
index ab038a0..904e307 100755 (executable)
@@ -81,7 +81,7 @@ public class Atom
     chain = str.substring(21, 22);
 
     resNumber = Integer.parseInt(str.substring(22, 26).trim());
-    resNumIns = str.substring(22, 27);
+    resNumIns = str.substring(22, 27).trim();
     insCode = str.substring(26, 27).charAt(0);
     this.x = (new Float(str.substring(30, 38).trim()).floatValue());
     this.y = (new Float(str.substring(38, 46).trim()).floatValue());
@@ -126,6 +126,7 @@ public class Atom
     }
     return false;
   }
+
   public Atom(float x, float y, float z)
   {
     this.x = x;