summaryrefslogtreecommitdiff
path: root/sc/source/core/data/column3.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2019-03-17 00:06:48 +0100
committerEike Rathke <erack@redhat.com>2019-03-17 19:55:54 +0100
commite5de84e73ffbaa1a45ab787750f5997582bbfa49 (patch)
tree54be76d049bfdc0d18f9e08d152bb79ba0456825 /sc/source/core/data/column3.cxx
parent5a342653a288f7cf496acb7c3d5d81c459615de9 (diff)
Reget position_type as the block or type may have changed, tdf#123736 related
Change-Id: I2faf3e74d95cb1f3088f20cbb7de7ba965a6de21 Reviewed-on: https://gerrit.libreoffice.org/69358 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
Diffstat (limited to 'sc/source/core/data/column3.cxx')
-rw-r--r--sc/source/core/data/column3.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index 8af8464a7a1a..fe78809a829a 100644
--- a/sc/source/core/data/column3.cxx
+++ b/sc/source/core/data/column3.cxx
@@ -2217,6 +2217,9 @@ bool ScColumn::SetFormulaCells( SCROW nRow, std::vector<ScFormulaCell*>& rCells
CellStorageModified();
+ // Reget position_type as the type may have changed to formula, block and
+ // block size changed, ...
+ aPos = maCells.position(nRow);
AttachNewFormulaCells(aPos, rCells.size(), aNewSharedRows);
return true;