From: kiramt Date: Wed, 7 Jun 2017 09:25:03 +0000 (+0100) Subject: JAL-2591 More rationalising of hiddencols X-Git-Tag: Release_2_10_3b1~183^2~14 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c8f507a5de54af17946aff399a615384617f9020;p=jalview.git JAL-2591 More rationalising of hiddencols --- 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) {