Commit d04da2a3 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

color parameter is not ignored in gene variants

parent b5b17383
...@@ -22,6 +22,7 @@ minerva (12.3.1~beta.1) unstable; urgency=low ...@@ -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 * Bug fix: when changing data in edit user dialog there was a need to click
close button twice (#818) close button twice (#818)
* Bug fix: empty type for data overlay is allowed (#827) * 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 minerva (13.1.0~beta.0) unstable; urgency=low
* Feature: annotators are more flexible - you can define set of input and * Feature: annotators are more flexible - you can define set of input and
......
...@@ -435,7 +435,7 @@ public class ColorSchemaReader { ...@@ -435,7 +435,7 @@ public class ColorSchemaReader {
} }
} }
for (ColorSchema colorSchema : schemasByName.values()) { for (ColorSchema colorSchema : schemasByName.values()) {
if (colorSchema instanceof GeneVariationColorSchema) { if (colorSchema instanceof GeneVariationColorSchema && colorSchema.getColor() == null) {
colorSchema.setColor(getGeneVariantsColor(((GeneVariationColorSchema) colorSchema).getGeneVariations())); colorSchema.setColor(getGeneVariantsColor(((GeneVariationColorSchema) colorSchema).getGeneVariations()));
} }
} }
...@@ -446,7 +446,7 @@ public class ColorSchemaReader { ...@@ -446,7 +446,7 @@ public class ColorSchemaReader {
* Gets color that should be assigned to {@link GeneVariationColorSchema}. * Gets color that should be assigned to {@link GeneVariationColorSchema}.
* *
* @param geneVariations * @param geneVariations
* list of viariants * list of variants
* @return {@link Color} that should be assigned to * @return {@link Color} that should be assigned to
* {@link GeneVariationColorSchema} * {@link GeneVariationColorSchema}
*/ */
......
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