sequence.getStart() in findTrueIndex
[jalview.git] / src / MCview / PDBCanvas.java
index 7da2705..ee556a3 100755 (executable)
@@ -449,10 +449,10 @@ public class PDBCanvas extends JPanel implements MouseListener, MouseMotionListe
     int findTrueIndex(int pos)
     {
       // returns the alignment position for a residue
-      int j = 1; // first position in PDB atom coordinate sequence
+      int j = sequence.getStart(); // first position in PDB atom coordinate sequence
       int i = 0;
 
-      while ( (i < sequence.getLength()) && (j <= pos+1)) 
+      while ( (i < sequence.getLength()) && (j <= pos+1))
       {
         if (!jalview.util.Comparison.isGap(sequence.getCharAt(i)))
         {