diff --git a/CHANGELOG b/CHANGELOG index 8ffa5ce7328701a207dc540da79ac340a74f9152..8b544c0a485866c34bdb2b272773e8b431d748de 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -22,6 +22,7 @@ minerva (12.3.1~beta.1) unstable; urgency=low * Bug fix: when changing data in edit user dialog there was a need to click close button twice (#818) * Bug fix: empty type for data overlay is allowed (#827) + * Bug fix: genetic variants data overlay was ignoring color parameter (#827) minerva (13.1.0~beta.0) unstable; urgency=low * Feature: annotators are more flexible - you can define set of input and diff --git a/service/src/main/java/lcsb/mapviewer/services/utils/ColorSchemaReader.java b/service/src/main/java/lcsb/mapviewer/services/utils/ColorSchemaReader.java index fb49f55ff8d20c0799cead5ccda144125431765d..2471473e533dfef860ccd7392867616e2d3a4fd9 100644 --- a/service/src/main/java/lcsb/mapviewer/services/utils/ColorSchemaReader.java +++ b/service/src/main/java/lcsb/mapviewer/services/utils/ColorSchemaReader.java @@ -435,7 +435,7 @@ public class ColorSchemaReader { } } for (ColorSchema colorSchema : schemasByName.values()) { - if (colorSchema instanceof GeneVariationColorSchema) { + if (colorSchema instanceof GeneVariationColorSchema && colorSchema.getColor() == null) { colorSchema.setColor(getGeneVariantsColor(((GeneVariationColorSchema) colorSchema).getGeneVariations())); } } @@ -446,7 +446,7 @@ public class ColorSchemaReader { * Gets color that should be assigned to {@link GeneVariationColorSchema}. * * @param geneVariations - * list of viariants + * list of variants * @return {@link Color} that should be assigned to * {@link GeneVariationColorSchema} */