RED-5381: Fixed drawing of sections
This commit is contained in:
parent
ad455455df
commit
a37051da11
@ -43,12 +43,13 @@ public class SectionGridCreatorService {
|
||||
|
||||
if (textBlock instanceof TextBlock) {
|
||||
|
||||
TextBlock tb = (TextBlock) textBlock;
|
||||
classifiedDoc.getSectionGrid()
|
||||
.getRectanglesPerPage()
|
||||
.computeIfAbsent(page, (x) -> new ArrayList<>())
|
||||
.add(new SectionRectangle(new Point(textBlock.getMinX(), textBlock.getMinY()),
|
||||
textBlock.getWidth(),
|
||||
textBlock.getHeight(),
|
||||
.add(new SectionRectangle(new Point(tb.getX1(), tb.getY1()),
|
||||
tb.getX2() - tb.getX1(),
|
||||
tb.getY2() - tb.getY1(),
|
||||
i + 1,
|
||||
paragraph.getPageBlocks().size(),
|
||||
null));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user