git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cff2b0
)
JAL-2506 allow graduated colour as default in new Sequence Feature
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Thu, 4 May 2017 16:08:59 +0000
(17:08 +0100)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Thu, 4 May 2017 16:08:59 +0000
(17:08 +0100)
dialog
src/jalview/gui/FeatureRenderer.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/FeatureRenderer.java
b/src/jalview/gui/FeatureRenderer.java
index
5f257c7
..
50a8689
100644
(file)
--- 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();