From 42762e9d38987e9a900d58c4210fe14214b73f98 Mon Sep 17 00:00:00 2001 From: CalebSLane Date: Wed, 22 Nov 2023 11:48:06 -0800 Subject: [PATCH] fix incorrect line in manual change for commit --- .../org/openelisglobal/result/service/ResultServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++) {