From c8f507a5de54af17946aff399a615384617f9020 Mon Sep 17 00:00:00 2001 From: kiramt Date: Wed, 7 Jun 2017 10:25:03 +0100 Subject: [PATCH] JAL-2591 More rationalising of hiddencols --- src/jalview/appletgui/AlignFrame.java | 3 +-- src/jalview/gui/AlignFrame.java | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/jalview/appletgui/AlignFrame.java b/src/jalview/appletgui/AlignFrame.java index 02d30bb..a75adbb 100644 --- a/src/jalview/appletgui/AlignFrame.java +++ b/src/jalview/appletgui/AlignFrame.java @@ -1926,8 +1926,7 @@ public class AlignFrame extends EmbmenuFrame implements ActionListener, { copiedHiddenColumns = new Vector(); int hiddenOffset = viewport.getSelectionGroup().getStartRes(); - for (int[] region : viewport.getAlignment().getHiddenColumns() - .getHiddenRegions()) + for (int[] region : viewport.getAlignment().getHiddenColumns()) { copiedHiddenColumns.addElement(new int[] { region[0] - hiddenOffset, region[1] - hiddenOffset }); diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 5ec9db9..e79e303 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -1887,8 +1887,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, hiddenColumns = new ArrayList<>(); int hiddenOffset = viewport.getSelectionGroup().getStartRes(), hiddenCutoff = viewport.getSelectionGroup().getEndRes(); - for (int[] region : viewport.getAlignment().getHiddenColumns() - .getHiddenRegions()) + for (int[] region : viewport.getAlignment().getHiddenColumns()) { if (region[0] >= hiddenOffset && region[1] <= hiddenCutoff) { -- 1.7.10.2