From: kiramt Date: Thu, 8 Jun 2017 17:12:41 +0000 (+0100) Subject: JAL-2588 Consistent gap colour when in None colour scheme X-Git-Tag: Release_2_10_3b1~142^2~2^2~9^2~3^2~7 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=caac13332ae50f9575c7eda7b8ec8ce0aa6aca16;p=jalview.git JAL-2588 Consistent gap colour when in None colour scheme --- diff --git a/src/jalview/gui/SequenceRenderer.java b/src/jalview/gui/SequenceRenderer.java index a89d7ce..51b1a3a 100755 --- a/src/jalview/gui/SequenceRenderer.java +++ b/src/jalview/gui/SequenceRenderer.java @@ -150,7 +150,7 @@ public class SequenceRenderer implements jalview.api.SequenceRenderer i, seq); } } - else if (forOverview && !Comparison.isGap(seq.getCharAt(i))) + else if (forOverview && Comparison.isGap(seq.getCharAt(i))) { resBoxColour = Color.lightGray; } diff --git a/src/jalview/renderer/OverviewRenderer.java b/src/jalview/renderer/OverviewRenderer.java index 9291ca6..21f6568 100644 --- a/src/jalview/renderer/OverviewRenderer.java +++ b/src/jalview/renderer/OverviewRenderer.java @@ -50,10 +50,9 @@ public class OverviewRenderer public OverviewRenderer(jalview.api.SequenceRenderer seqRenderer, FeatureRenderer fr, OverviewDimensions od) - // FeatureColourFinder colfinder, OverviewDimensions od) { sr = seqRenderer; - finder = new FeatureColourFinder(fr); // colfinder; + finder = new FeatureColourFinder(fr); pixelsPerCol = od.getPixelsPerCol(); pixelsPerSeq = od.getPixelsPerSeq();