git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5dd6636
)
sequence.getStart() in findTrueIndex
author
amwaterhouse
<Andrew Waterhouse>
Thu, 1 Feb 2007 17:05:10 +0000
(17:05 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Thu, 1 Feb 2007 17:05:10 +0000
(17:05 +0000)
src/MCview/PDBCanvas.java
patch
|
blob
|
history
diff --git
a/src/MCview/PDBCanvas.java
b/src/MCview/PDBCanvas.java
index
7da2705
..
ee556a3
100755
(executable)
--- a/
src/MCview/PDBCanvas.java
+++ b/
src/MCview/PDBCanvas.java
@@
-449,10
+449,10
@@
public class PDBCanvas extends JPanel implements MouseListener, MouseMotionListe
int findTrueIndex(int pos)
{
// returns the alignment position for a residue
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;
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)))
{
{
if (!jalview.util.Comparison.isGap(sequence.getCharAt(i)))
{