Get new subscription item unit value from previously stored defaults 73/4373/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Sun, 9 Aug 2020 22:41:46 +0000 (01:41 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Sun, 9 Aug 2020 22:41:46 +0000 (01:41 +0300)
See ChartAndSubscriptionItemDialog:345 for why this change works.

gitlab #578

Change-Id: I737627e37551222c255b18af0e228e4134352ce2

bundles/org.simantics.charts/src/org/simantics/charts/query/ChartAndSubscriptionItemData.java

index 9438e404ba05d530cdeb94faddcb1f22439867a4..8f2bd26f8ccf6fc4fe348d7c44cbddf6e0d9af37 100644 (file)
@@ -48,7 +48,7 @@ public class ChartAndSubscriptionItemData extends Bean {
        
        // Output
        @Optional public String subscription = "Default";
-       @Optional public String unit = "";
+       @Optional public String unit;
        @Optional public Double min, max, deadband, interval, gain, bias;
        @Optional public DrawMode drawmode;
        @Optional public Scale scale;