diff --git a/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/layoutparsing/document/graph/textblock/AtomicTextBlock.java b/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/layoutparsing/document/graph/textblock/AtomicTextBlock.java index 1c4d2023..4aa66165 100644 --- a/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/layoutparsing/document/graph/textblock/AtomicTextBlock.java +++ b/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/layoutparsing/document/graph/textblock/AtomicTextBlock.java @@ -214,7 +214,7 @@ public class AtomicTextBlock implements TextBlock { .filter(boundary::contains) .collect(Collectors.toSet()); if (boundary.end() == getBoundary().end()) { - lbInBoundary.add(getBoundary().length()); + lbInBoundary.add(getBoundary().end()); } StringBuilder sb = new StringBuilder(); for (int i = boundary.start(); i < boundary.end(); i++) {