Commit 03cf523d authored by Piotr Gawron's avatar Piotr Gawron
Browse files

check for gene color only if gene is defiend

parent ab6bee06
Pipeline #21417 passed with stage
in 11 minutes and 58 seconds
......@@ -615,11 +615,14 @@ 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() && !transcriptionSite.getSpecies().getColor().equals(Color.WHITE)) {
if (transcriptionSite.getActive()) {
color = Color.RED;
} else {
color = Color.BLACK;
}
if (transcriptionSite.getSpecies() != null && transcriptionSite.getSpecies().getColor().equals(Color.WHITE)) {
color = Color.BLACK;
}
double y = transcriptionSite.getPosition().getY();
double x = transcriptionSite.getPosition().getX();
PolylineData line = new PolylineData();
......
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