Merge branch 'develop' into bug/JAL-1841rnaSecStr
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 18 Aug 2016 15:33:06 +0000 (16:33 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 18 Aug 2016 15:33:06 +0000 (16:33 +0100)
1  2 
resources/lang/Messages.properties
resources/lang/Messages_es.properties
src/jalview/appletgui/AnnotationPanel.java
src/jalview/gui/AnnotationPanel.java

Simple merge
Simple merge
@@@ -25,9 -25,9 +25,10 @@@ import jalview.datamodel.Annotation
  import jalview.datamodel.SequenceI;
  import jalview.renderer.AnnotationRenderer;
  import jalview.renderer.AwtRenderPanelI;
+ import jalview.schemes.ResidueProperties;
  import jalview.util.Comparison;
  import jalview.util.MessageManager;
 +import jalview.util.Platform;
  
  import java.awt.Color;
  import java.awt.Dimension;
@@@ -287,15 -290,17 +290,18 @@@ public class AnnotationPanel extends JP
        aa[activeRow].annotations = anot;
      }
  
 -    if (evt.getActionCommand().equals(REMOVE))
 +    String action = evt.getActionCommand();
 +    if (action.equals(REMOVE))
      {
-       for (int sel : av.getColumnSelection().getSelected())
+       for (int index : av.getColumnSelection().getSelected())
        {
-         anot[sel] = null;
+         if (av.getColumnSelection().isVisible(index))
+         {
+           anot[index] = null;
+         }
        }
      }
 -    else if (evt.getActionCommand().equals(LABEL))
 +    else if (action.equals(LABEL))
      {
        String exMesg = collectAnnotVals(anot, LABEL);
        String label = JOptionPane.showInputDialog(this,