From 7e8ed915e35f83bad3f438a2d814a84678296a33 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Fri, 29 Jan 2016 16:10:56 +0000 Subject: [PATCH] JAL-1705 copy feature settings when opening a split frame for show product --- src/jalview/gui/AlignFrame.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 5ff7c6c..c047780 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -4831,6 +4831,17 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, .isShowSequenceFeatures(); newFrame.setShowSeqFeatures(showSequenceFeatures); copyThis.setShowSeqFeatures(showSequenceFeatures); + FeatureRenderer myFeatureStyling = alignPanel.getSeqPanel().seqCanvas + .getFeatureRenderer(); + /* + * copy feature rendering settings to split frame + */ + newFrame.alignPanel.getSeqPanel().seqCanvas + .getFeatureRenderer().transferSettings( + myFeatureStyling); + copyThis.alignPanel.getSeqPanel().seqCanvas + .getFeatureRenderer().transferSettings( + myFeatureStyling); SplitFrame sf = new SplitFrame(dna ? copyThis : newFrame, dna ? newFrame : copyThis); newFrame.setVisible(true); -- 1.7.10.2