From b36d5008430c0d29e82ffa09a38636e05755d4b4 Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Mon, 10 Aug 2020 01:41:46 +0300 Subject: [PATCH] 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) --- .../simantics/charts/query/ChartAndSubscriptionItemData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.1