diff --git a/src/main/java/org/openelisglobal/result/service/ResultServiceImpl.java b/src/main/java/org/openelisglobal/result/service/ResultServiceImpl.java index 168e57d63d..75aa503f55 100644 --- a/src/main/java/org/openelisglobal/result/service/ResultServiceImpl.java +++ b/src/main/java/org/openelisglobal/result/service/ResultServiceImpl.java @@ -290,7 +290,7 @@ public String getResultValue(Result result, String separator, boolean printable, if (!result.getValue().contains(".")) { value.append("."); } else { - startFill = result.getValue().length() - result.getValue().lastIndexOf(".") - 1; + startFill = result.getValue(true).length() - result.getValue(true).lastIndexOf(".") - 1; } for (int i = startFill; i < significantPlaces; i++) { @@ -389,7 +389,7 @@ public String getResultValueForDisplay(Result result, String separator, boolean if (!result.getValue().contains(".")) { value.append("."); } else { - startFill = result.getValue().length() - result.getValue().lastIndexOf(".") - 1; + startFill = result.getValue(true).length() - result.getValue(true).lastIndexOf(".") - 1; } for (int i = startFill; i < significantPlaces; i++) {