Merge branch 'patch/JAL-3855_fixup_pae' into develop
[jalview.git] / src / jalview / datamodel / ContactListImpl.java
index 69dcf71..bb31c5d 100644 (file)
@@ -55,9 +55,9 @@ public class ContactListImpl implements ContactListI
     {
       from_column = 0;
     }
-    if (to_column > getContactHeight())
+    if (to_column >= getContactHeight())
     {
-      to_column = getContactHeight();
+      to_column = getContactHeight()-1;
     }
     ContactRange cr = new ContactRange();
     cr.setFrom_column(from_column);