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(sheet): insert col range error (#764)
Gpound.liu7530eb06b621
diff --git a/packages/sheets/src/commands/commands/insert-row-col.command.ts b/packages/sheets/src/commands/commands/insert-row-col.command.tsindex dc6c5e4a3d..9ca8f052d8 100644--- a/packages/sheets/src/commands/commands/insert-row-col.command.ts+++ b/packages/sheets/src/commands/commands/insert-row-col.command.ts@@ -396,7 +396,7 @@ export const InsertColBeforeCommand: ICommand = {startColumn: range.startColumn,endColumn: range.startColumn + count - 1,startRow: 0,- endRow: worksheet.getLastColumnWithContent(),+ endRow: worksheet.getLastRowWithContent(),},};