RED-10249: regex found incorrectly due to wrong text sorting
This commit is contained in:
parent
ca2f3512d2
commit
124afb3623
@ -82,10 +82,10 @@ public class Line extends TextBoundingBox {
|
||||
|
||||
this.words = words;
|
||||
buildBBox();
|
||||
x0 = getPdfMinX();
|
||||
y0 = getPdfMinY();
|
||||
x1 = getPdfMaxX();
|
||||
y1 = getPdfMaxY();
|
||||
x0 = getMinX();
|
||||
y0 = getMinY();
|
||||
x1 = getMaxX();
|
||||
y1 = getMaxY();
|
||||
computeFontStyle();
|
||||
}
|
||||
|
||||
|
||||
@ -18,7 +18,6 @@ public class Zone extends TextBoundingBox {
|
||||
@SuppressWarnings("PMD.ConstructorCallsOverridableMethod")
|
||||
public Zone(List<Line> lines) {
|
||||
|
||||
lines.sort(Comparator.comparingDouble(Line::getY0));
|
||||
this.lines = lines;
|
||||
setToBBoxOfComponents(lines);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user