Skip to content

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.

fix: fix objectMatrix getRealRange function (#6193)

wpxp123456711c9ae67d84
diff --git a/packages/core/src/shared/object-matrix.ts b/packages/core/src/shared/object-matrix.ts
index f8148b5c7f..9ebe52de4e 100644
--- a/packages/core/src/shared/object-matrix.ts
+++ b/packages/core/src/shared/object-matrix.ts
@@ -592,6 +592,10 @@ export class ObjectMatrix<T> {
}
}
+ if (startColumn === -Infinity) {
+ startColumn = 0;
+ }
+
return {
startRow,
endRow,