From: Tuukka Lehtonen Date: Sun, 9 Aug 2020 22:41:46 +0000 (+0300) Subject: Get new subscription item unit value from previously stored defaults X-Git-Tag: v1.43.0~3 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F62%2F4362%2F1;p=simantics%2Fplatform.git Get new subscription item unit value from previously stored defaults See ChartAndSubscriptionItemDialog:345 for why this change works. gitlab #578 Change-Id: I737627e37551222c255b18af0e228e4134352ce2 (cherry picked from commit 25e3207c8a1aad3cbe72202750f67f0483ccb1a2) --- diff --git a/bundles/org.simantics.charts/src/org/simantics/charts/query/ChartAndSubscriptionItemData.java b/bundles/org.simantics.charts/src/org/simantics/charts/query/ChartAndSubscriptionItemData.java index 9438e404b..8f2bd26f8 100644 --- a/bundles/org.simantics.charts/src/org/simantics/charts/query/ChartAndSubscriptionItemData.java +++ b/bundles/org.simantics.charts/src/org/simantics/charts/query/ChartAndSubscriptionItemData.java @@ -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;