fix: err with updateInlineDrawingCoordsAndBorder (#6002)

Co-authored-by: r.sergeev <r.sergeev@yadro.com>
This commit is contained in:
Roman Sergeev
2025-10-24 10:58:31 +08:00
committed by GitHub
co-authored by r.sergeev
parent cac7151c72
commit d6493f2464
@@ -486,7 +486,7 @@ export function updateInlineDrawingCoordsAndBorder(ctx: ILayoutContext, pages: I
const lastDivide = line.divides[line.divides.length - 1];
const lastGlyph = lastDivide.glyphGroup[lastDivide.glyphGroup.length - 1];
if (lastGlyph.streamType === DataStreamTreeTokenType.PARAGRAPH && paragraphStyle?.borderBottom) {
if (lastGlyph?.streamType === DataStreamTreeTokenType.PARAGRAPH && paragraphStyle?.borderBottom) {
line.borderBottom = paragraphStyle.borderBottom;
}
}