JAL-2388 Working hidden regions hide/show in desktop
[jalview.git] / src / jalview / gui / AnnotationLabels.java
index 3e4ec98..8ca1a4e 100755 (executable)
@@ -954,7 +954,7 @@ public class AnnotationLabels extends JPanel implements MouseListener,
 
     int[] alignmentStartEnd = new int[] { 0, ds.getWidth() - 1 };
     List<int[]> hiddenCols = av.getAlignment().getHiddenColumns()
-            .getListOfCols();
+            .getHiddenRegions();
     if (hiddenCols != null)
     {
       alignmentStartEnd = av.getAlignment().getVisibleStartAndEndIndex(
@@ -971,7 +971,7 @@ public class AnnotationLabels extends JPanel implements MouseListener,
     {
       hiddenColumns = new ArrayList<int[]>();
       for (int[] region : av.getAlignment().getHiddenColumns()
-              .getListOfCols())
+              .getHiddenRegions())
       {
         hiddenColumns.add(new int[] { region[0], region[1] });
       }