Commit 33bad0b4 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

when no colors are used in gene then transcription factor doesn't use colors as well

parent f238fef8
Pipeline #21415 failed with stage
in 3 minutes and 8 seconds
......@@ -12,6 +12,8 @@ minerva (14.0.9) stable; urgency=medium
name of a file is used as overlay name (#1065)
* Bug fix: uploading empty data overlay resulted in an error (#1123)
* Bug fix: exporting map with glyphs crashed (#1130)
* Bug fix: transcription factor on black&white gene are drawn in black
(#1132)
-- Piotr Gawron <piotr.gawron@uni.lu> Mon, 3 Feb 2020 15:00:00 +0200
......
......@@ -615,7 +615,7 @@ public abstract class SpeciesConverter<T extends Species> extends ElementConvert
protected void drawTranscriptionSite(final TranscriptionSite transcriptionSite, final Graphics2D graphics) {
Color color = graphics.getColor();
if (transcriptionSite.getActive()) {
if (transcriptionSite.getActive() && !transcriptionSite.getSpecies().getColor().equals(Color.WHITE)) {
color = Color.RED;
} else {
color = Color.BLACK;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment