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:
61464a7
)
Dont try{}catch the findColour method, lets fix this now
author
amwaterhouse
<Andrew Waterhouse>
Tue, 14 Dec 2004 17:37:06 +0000
(17:37 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Tue, 14 Dec 2004 17:37:06 +0000
(17:37 +0000)
src/jalview/gui/SequenceRenderer.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/SequenceRenderer.java
b/src/jalview/gui/SequenceRenderer.java
index
5c3ee12
..
e8cf340
100755
(executable)
--- a/
src/jalview/gui/SequenceRenderer.java
+++ b/
src/jalview/gui/SequenceRenderer.java
@@
-27,9
+27,9
@@
public class SequenceRenderer implements RendererI
public Color getResidueBoxColour(ColourSchemeI cs, SequenceI seq, int i)
\r
{
\r
Color c = Color.white;
\r
- try{
\r
- c = cs.findColour(seq, seq.getSequence(i, i + 1), i, null);
\r
- }catch(Exception ex){}
\r
+
\r
+ if (cs != null)
\r
+ c = cs.findColour(seq, seq.getSequence(i, i + 1), i, av.getConsensus(false));
\r
\r
return c;
\r
}
\r