JAL-3187 derived peptide variants tweaks and tests
[jalview.git] / src / jalview / gui / SeqPanel.java
index c648e53..75bf0cc 100644 (file)
@@ -913,7 +913,7 @@ public class SeqPanel extends JPanel
           for (SequenceFeature sf : mf.features)
           {
             String pv = mf.findProteinVariants(sf);
-            if (!infos.contains(pv))
+            if (pv.length() > 0 && !infos.contains(pv))
             {
               infos.add(pv);
             }
@@ -1065,7 +1065,7 @@ public class SeqPanel extends JPanel
                   pos);
           if (mf != null)
           {
-            seqARep.appendFeatures(tooltipText, pos, mf.features, fr2);
+            seqARep.appendFeatures(tooltipText, pos, mf, fr2);
           }
         }
       }