From 6c3a6b9685acad171fda7bc5d44b0dd53b9f7268 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Wed, 1 Jul 2020 11:24:08 +0200 Subject: don't add a cell to a non-existent column (tdf#104865) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 (cherry picked from commit ee2d2184133b3bf47d38a03b14abab2caa15dad1) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97673 Reviewed-by: Xisco Fauli (cherry picked from commit 8765592db900fae22ff2a0440fe94842dcbd805f) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97684 --- sc/inc/mtvelements.hxx | 1 + 1 file changed, 1 insertion(+) (limited to 'sc/inc') diff --git a/sc/inc/mtvelements.hxx b/sc/inc/mtvelements.hxx index 0727bda0fa7f..7fa266ecf8f0 100644 --- a/sc/inc/mtvelements.hxx +++ b/sc/inc/mtvelements.hxx @@ -167,6 +167,7 @@ public: ~TableColumnBlockPositionSet(); ColumnBlockPosition* getBlockPosition( SCCOL nCol ); + void invalidate(); // discards cached positions }; ScRefCellValue toRefCell( const sc::CellStoreType::const_iterator& itPos, size_t nOffset ); -- cgit