JAL-3081 autocalculated annotation first/last leaves others unchanged
[jalview.git] / src / jalview / gui / AlignFrame.java
index 63c0890..8994743 100644 (file)
@@ -479,7 +479,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
       }
     });
 
-    alignPanel.sortAnnotations();
+    alignPanel.sortAnnotations(false);
   }
 
   /**
@@ -4691,7 +4691,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
       }
       if (isAnnotation)
       {
-        alignPanel.sortAnnotations();
+        alignPanel.sortAnnotations(false);
         alignPanel.adjustAnnotationHeight();
         viewport.updateSequenceIdColours();
         buildSortByAnnotationScoresMenu();
@@ -5412,9 +5412,9 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
    * Sorts annotations and repaints the alignment
    */
   @Override
-  public void sortAnnotations()
+  public void sortAnnotations(boolean autoCalcOnly)
   {
-    alignPanel.sortAnnotations();
+    alignPanel.sortAnnotations(autoCalcOnly);
     alignPanel.paintAlignment(false, false);
   }