sequence.getStart() in findTrueIndex
authoramwaterhouse <Andrew Waterhouse>
Thu, 1 Feb 2007 17:05:10 +0000 (17:05 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 1 Feb 2007 17:05:10 +0000 (17:05 +0000)
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)))
         {