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:
b198800
)
JAL-4090 defensive check for featureSettings redraws when feature filter attrbute...
improvement/JAL-4308_smalleridtooltip
author
James Procter
<j.procter@dundee.ac.uk>
Mon, 23 Oct 2023 08:25:34 +0000
(09:25 +0100)
committer
James Procter
<j.procter@dundee.ac.uk>
Mon, 23 Oct 2023 08:25:52 +0000
(09:25 +0100)
src/jalview/gui/FeatureSettings.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/FeatureSettings.java
b/src/jalview/gui/FeatureSettings.java
index
184fdc5
..
4d31805
100644
(file)
--- a/
src/jalview/gui/FeatureSettings.java
+++ b/
src/jalview/gui/FeatureSettings.java
@@
-1787,11
+1787,15
@@
public class FeatureSettings extends JPanel
{
FeatureMatcherSetI theFilter = (FeatureMatcherSetI) filter;
setOpaque(true);
- String asText = theFilter.toString();
setBackground(tbl.getBackground());
- this.setText(asText);
this.setIcon(null);
+ if (theFilter != null)
+ {
+ String asText = theFilter.toString();
+ this.setText(asText);
+ }
+
if (isSelected)
{
if (selectedBorder == null)