ref #8450 Fix config labels for default matrix values
authorPatrick Plitzner <p.plitzner@bgbm.org>
Mon, 28 Oct 2019 14:58:33 +0000 (15:58 +0100)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Mon, 28 Oct 2019 14:58:33 +0000 (15:58 +0100)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrixConfigLabelAccumulator.java

index a2401c6ced398f6215e8ea400248061e069530dd..7cc5111c4fcbaef86078855b45d63cd5a7aa6112 100644 (file)
@@ -98,10 +98,10 @@ public class CharacterMatrixConfigLabelAccumulator implements IConfigLabelAccumu
                 SpecimenRowWrapperDTO specimenRowWrapper = (SpecimenRowWrapperDTO)rowObject;
                 if(hasDefaultValue(feature, specimenRowWrapper)){
                     configLabels.addLabel(HAS_DEFAULT);
-                }
-                if(hasDefaultOverriddenValue(feature, specimenRowWrapper)){
-                    configLabels.removeLabel(HAS_DEFAULT);
-                    configLabels.addLabel(DEFAULT_OVERRIDDEN);
+                    if(hasDefaultOverriddenValue(feature, specimenRowWrapper)){
+                        configLabels.removeLabel(HAS_DEFAULT);
+                        configLabels.addLabel(DEFAULT_OVERRIDDEN);
+                    }
                 }
             }