From: gmungoc Date: Thu, 7 Mar 2019 15:08:15 +0000 (+0000) Subject: JAL-2250 default Apply Colour to All Groups selected X-Git-Tag: Release_2_11_0~17^2~56 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a134511be07a998f7b80168dd26b632d53ed66b4;p=jalview.git JAL-2250 default Apply Colour to All Groups selected --- diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 25c6dd4..e17b331 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -2741,6 +2741,12 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, newap.av.setRedoList(viewport.getRedoList()); /* + * copy any visualisation settings that are not saved in the project + */ + newap.av.setColourAppliesToAllGroups( + viewport.getColourAppliesToAllGroups()); + + /* * Views share the same mappings; need to deregister any new mappings * created by copyAlignPanel, and register the new reference to the shared * mappings diff --git a/src/jalview/gui/AlignViewport.java b/src/jalview/gui/AlignViewport.java index f94b74d..e0abfd9 100644 --- a/src/jalview/gui/AlignViewport.java +++ b/src/jalview/gui/AlignViewport.java @@ -304,6 +304,7 @@ public class AlignViewport extends AlignmentViewport { residueShading.setConsensus(hconsensus); } + setColourAppliesToAllGroups(true); } boolean validCharWidth;