From: amwaterhouse Date: Fri, 25 Nov 2005 16:08:06 +0000 (+0000) Subject: Correct mapping for pdb file X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=321d45cdcd1db34cddebdd9ded7c277e84295c1a;p=jalview.git Correct mapping for pdb file --- diff --git a/src/jalview/analysis/AlignSeq.java b/src/jalview/analysis/AlignSeq.java index 1b7351b..3f3bab1 100755 --- a/src/jalview/analysis/AlignSeq.java +++ b/src/jalview/analysis/AlignSeq.java @@ -406,31 +406,43 @@ public class AlignSeq public int [] getExactMapping() { // Print out the matching chars - int [] mapping = new int[astr1.length()]; - int agap=0, bgap=0; - boolean gap; + int size = s2.getLength(); + int [] mapping = new int[size]; + for(int i=0; i