Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix: err with updateInlineDrawingCoordsAndBorder (#6002)
Roman Sergeevd6493f24644a
diff --git a/packages/engine-render/src/components/docs/layout/tools.ts b/packages/engine-render/src/components/docs/layout/tools.tsindex d3bb483857..e7cd710da3 100644--- a/packages/engine-render/src/components/docs/layout/tools.ts+++ b/packages/engine-render/src/components/docs/layout/tools.ts@@ -486,7 +486,7 @@ export function updateInlineDrawingCoordsAndBorder(ctx: ILayoutContext, pages: Iconst 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;}}