Skip to content

Commit

Permalink
Fix for Renderer's units not being set to ONE when created.
Browse files Browse the repository at this point in the history
  • Loading branch information
terrypacker committed Feb 19, 2016
1 parent f03d1d7 commit d9b7156
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Core/src/com/serotonin/m2m2/view/text/AnalogRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public AnalogRenderer(String format, String suffix, boolean useUnitAsSuffix) {

@Override
protected void setDefaults() {
super.setDefaults();
format = "0.00";
suffix = "";
}
Expand Down
1 change: 1 addition & 0 deletions Core/src/com/serotonin/m2m2/view/text/PlainRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public PlainRenderer(String suffix, boolean useUnitAsSuffix) {

@Override
protected void setDefaults() {
super.setDefaults();
suffix = "";
}

Expand Down
1 change: 1 addition & 0 deletions Core/src/com/serotonin/m2m2/view/text/RangeRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public RangeRenderer(String format) {

@Override
protected void setDefaults() {
super.setDefaults();
format = "";
rangeValues = new ArrayList<RangeValue>();
}
Expand Down

0 comments on commit d9b7156

Please sign in to comment.