JAL-2292 squashed bug that breaks feature mapping for different cased residues
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Fri, 4 Nov 2016 16:08:53 +0000 (16:08 +0000)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Fri, 4 Nov 2016 16:08:53 +0000 (16:08 +0000)
src/MCview/PDBChain.java

index 7774dac..34f09c8 100755 (executable)
@@ -31,6 +31,7 @@ import jalview.schemes.ColourSchemeI;
 import jalview.schemes.ResidueProperties;
 import jalview.structure.StructureImportSettings;
 import jalview.structure.StructureMapping;
+import jalview.util.Comparison;
 
 import java.awt.Color;
 import java.util.List;
@@ -146,7 +147,9 @@ public class PDBChain
         pdbpos++;
       }
 
-      if (as.astr1.charAt(i) == as.astr2.charAt(i))
+      boolean sameResidue = Comparison.compareChars(as.astr1.charAt(i),
+              as.astr2.charAt(i), false);
+      if (sameResidue)
       {
         if (pdbpos >= residues.size())
         {