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=b36d5008430c0d29e82ffa09a38636e05755d4b4;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;