From 423df1fa929784c14e3a133c06468589fe9269cd Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Thu, 2 Nov 2017 12:53:14 +0100 Subject: Resolves: tdf#111428 implement CellStoreEvent::swap() in ScColumn::SwapCol() CellStoreEvent remembered the original ScColumn* and corresponding ScColumn::mnBlkCountFormula, hence after inserting a column to the left the quick check of ScColumn::HasFormulaCell() whether there are any formula cells worked on the swapped in column (originally the one to the right) that happens to be empty in the scenario. Things worked correctly by accident if the next column to the right already contained a formula cell. Regression from commit e57a5905fb2975307af654710430d0a876dbd061 Date: Sat Jul 16 20:01:48 2016 -0400 Change-Id: If993856ceee657736f516a81c293506041a6b7eb --- sc/inc/mtvelements.hxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sc/inc') diff --git a/sc/inc/mtvelements.hxx b/sc/inc/mtvelements.hxx index f13562d47fbd..2809b7a621c5 100644 --- a/sc/inc/mtvelements.hxx +++ b/sc/inc/mtvelements.hxx @@ -97,6 +97,8 @@ public: void element_block_acquired(const mdds::mtv::base_element_block* block); void element_block_released(const mdds::mtv::base_element_block* block); + + void swap(CellStoreEvent& r); }; /// Cell note container -- cgit