JAL-2349 JAL-3855 resolve sequence position for contact lookup and catch out bound...
[jalview.git] / src / jalview / renderer / ContactMapRenderer.java
index c9198ed..aaa8a61 100644 (file)
@@ -61,9 +61,11 @@ public class ContactMapRenderer implements AnnotationRowRendererI
         x++;
         continue;
       }
-      /*
-       * {profile type, #values, total count, char1, pct1, char2, pct2...}
-       */
+      if (_aa.sequenceRef != null)
+      {
+        // get the sequence position for the column
+        column = _aa.sequenceRef.findPosition(column) - 1;
+      }
       ContactListI contacts = viewport.getContactList(_aa, column);
       if (contacts == null)
       {