From d9b715618bb33db56ebef47562dea21b4961cf60 Mon Sep 17 00:00:00 2001 From: terrypacker Date: Fri, 19 Feb 2016 12:32:00 -1000 Subject: [PATCH] Fix for Renderer's units not being set to ONE when created. --- Core/src/com/serotonin/m2m2/view/text/AnalogRenderer.java | 1 + Core/src/com/serotonin/m2m2/view/text/PlainRenderer.java | 1 + Core/src/com/serotonin/m2m2/view/text/RangeRenderer.java | 1 + 3 files changed, 3 insertions(+) diff --git a/Core/src/com/serotonin/m2m2/view/text/AnalogRenderer.java b/Core/src/com/serotonin/m2m2/view/text/AnalogRenderer.java index 1f89052fca..7f24bec92f 100644 --- a/Core/src/com/serotonin/m2m2/view/text/AnalogRenderer.java +++ b/Core/src/com/serotonin/m2m2/view/text/AnalogRenderer.java @@ -75,6 +75,7 @@ public AnalogRenderer(String format, String suffix, boolean useUnitAsSuffix) { @Override protected void setDefaults() { + super.setDefaults(); format = "0.00"; suffix = ""; } diff --git a/Core/src/com/serotonin/m2m2/view/text/PlainRenderer.java b/Core/src/com/serotonin/m2m2/view/text/PlainRenderer.java index 7d28d267bb..50322ca42a 100644 --- a/Core/src/com/serotonin/m2m2/view/text/PlainRenderer.java +++ b/Core/src/com/serotonin/m2m2/view/text/PlainRenderer.java @@ -68,6 +68,7 @@ public PlainRenderer(String suffix, boolean useUnitAsSuffix) { @Override protected void setDefaults() { + super.setDefaults(); suffix = ""; } diff --git a/Core/src/com/serotonin/m2m2/view/text/RangeRenderer.java b/Core/src/com/serotonin/m2m2/view/text/RangeRenderer.java index a9cf171a5e..577205032c 100644 --- a/Core/src/com/serotonin/m2m2/view/text/RangeRenderer.java +++ b/Core/src/com/serotonin/m2m2/view/text/RangeRenderer.java @@ -59,6 +59,7 @@ public RangeRenderer(String format) { @Override protected void setDefaults() { + super.setDefaults(); format = ""; rangeValues = new ArrayList(); }