From 762dd65b19b26b7f6fb4583a476abfe173f37e49 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Thu, 4 May 2017 17:08:59 +0100 Subject: [PATCH] JAL-2506 allow graduated colour as default in new Sequence Feature dialog --- src/jalview/gui/FeatureRenderer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/FeatureRenderer.java b/src/jalview/gui/FeatureRenderer.java index 5f257c7..50a8689 100644 --- a/src/jalview/gui/FeatureRenderer.java +++ b/src/jalview/gui/FeatureRenderer.java @@ -165,7 +165,8 @@ public class FeatureRenderer extends { if (fcc == null) { - final String type = features.get(featureIndex).getType(); + final String ft = features.get(featureIndex).getType(); + final String type = ft == null ? lastFeatureAdded : ft; fcc = new FeatureColourChooser(me, type); fcc.setRequestFocusEnabled(true); fcc.requestFocus(); -- 1.7.10.2