diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2022-05-18 18:48:23 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2022-05-19 00:18:26 +0200 |
commit | 2e86718626a07e1656661df3ad69a64848bf4614 (patch) | |
tree | 23c0a63b1e5f07036d5caabda67374b2caaacd49 /sc/inc | |
parent | 141519233b16353c4998bb826fab11d17dbaf6a3 (diff) |
don't allocate unnecessary columns when inserting a row
Change-Id: I616ef20dc1295ce17c4877ff367815bb6a90b7a1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134547
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/column.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx index 290334f7f3fd..e4b7eb148d9a 100644 --- a/sc/inc/column.hxx +++ b/sc/inc/column.hxx @@ -171,6 +171,7 @@ public: void ChangeSelectionIndent( bool bIncrement, const ScMarkData& rMark, SCCOL nCol ); bool TestInsertRow( SCSIZE nSize ) const; + void InsertRow( SCROW nStartRow, SCSIZE nSize ); }; // Use protected inheritance to prevent publishing some internal ScColumnData @@ -1041,4 +1042,9 @@ inline bool ScColumnData::TestInsertRow( SCSIZE nSize ) const return pAttrArray->TestInsertRow( nSize ); } +inline void ScColumnData::InsertRow( SCROW nStartRow, SCSIZE nSize ) +{ + pAttrArray->InsertRow( nStartRow, nSize ); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |