fix for JAL-2072
authorJim Procter <jprocter@issues.jalview.org>
Wed, 20 Apr 2016 10:56:57 +0000 (11:56 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 20 Apr 2016 10:56:57 +0000 (11:56 +0100)
src/jalview/gui/AlignFrame.java

index cb769bb..28ff0a1 100644 (file)
@@ -4124,7 +4124,9 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
       {
         JMenuItem tm = new JMenuItem();
         ScoreModelI sm = ResidueProperties.scoreMatrices.get(pwtype);
-        if (sm.isProtein() == !viewport.getAlignment().isNucleotide())
+        if (sm.isDNA() == viewport.getAlignment().isNucleotide()
+                || sm.isProtein() == !viewport.getAlignment()
+                        .isNucleotide())
         {
           String smn = MessageManager.getStringOrReturn(
                   "label.score_model_", sm.getName());