From: gmungoc Date: Thu, 4 May 2017 16:08:59 +0000 (+0100) Subject: JAL-2506 allow graduated colour as default in new Sequence Feature X-Git-Tag: Release_2_10_2~3^2~103 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=762dd65b19b26b7f6fb4583a476abfe173f37e49;p=jalview.git JAL-2506 allow graduated colour as default in new Sequence Feature dialog --- 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();