]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Get new subscription item unit value from previously stored defaults 62/4362/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Sun, 9 Aug 2020 22:41:46 +0000 (01:41 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 10 Aug 2020 05:01:27 +0000 (05:01 +0000)
See ChartAndSubscriptionItemDialog:345 for why this change works.

gitlab #578

Change-Id: I737627e37551222c255b18af0e228e4134352ce2
(cherry picked from commit 25e3207c8a1aad3cbe72202750f67f0483ccb1a2)

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;