diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2020-07-01 11:24:08 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2022-02-22 16:56:52 +0100 |
commit | aa40111264ac9b323f63663f39e7eed8627878e9 (patch) | |
tree | fb0d68eeb49d1563226fc52bc97971a95b9f5e04 /sc/inc | |
parent | a2470a4831b43563ed6db5ef9a70b7643c7c4ea1 (diff) |
don't add a cell to a non-existent column (tdf#104865)
This change also needs invalidating column position hints if
the columns get changed by the copying of the cells.
Change-Id: I4793e25f253c0197d88b313bc9336435cef649f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97603
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
(cherry picked from commit ee2d2184133b3bf47d38a03b14abab2caa15dad1)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97673
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 8765592db900fae22ff2a0440fe94842dcbd805f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97684
(cherry picked from commit 6c3a6b9685acad171fda7bc5d44b0dd53b9f7268)
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/mtvelements.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/inc/mtvelements.hxx b/sc/inc/mtvelements.hxx index f13562d47fbd..e441e0473558 100644 --- a/sc/inc/mtvelements.hxx +++ b/sc/inc/mtvelements.hxx @@ -169,6 +169,7 @@ public: ~TableColumnBlockPositionSet(); ColumnBlockPosition* getBlockPosition( SCCOL nCol ); + void invalidate(); // discards cached positions }; ScRefCellValue toRefCell( const sc::CellStoreType::const_iterator& itPos, size_t nOffset ); |