JAL-34 - quick hack to see how we can do alignment comparison for splitframes linking...
[jalview.git] / src / jalview / datamodel / Alignment.java
index 73ccdc5..95f5780 100755 (executable)
@@ -1830,7 +1830,13 @@ public class Alignment implements AlignmentI, AutoCloseable
     {
       return AlignmentUtils.alignCdsAsProtein(this, al);
     }
-    return AlignmentUtils.alignAs(this, al);
+    else if (thatIsProtein && !thisIsNucleotide)
+    {
+       // honour sense we were called - align this according to al 
+       return AlignmentUtils.alignAs(this, al);
+    }
+    // otherwise doing a DNA to DNA alignment - so use legacy obverse sense
+    return AlignmentUtils.alignAs(this,al);    
   }
 
   /**