diff options
author | Eike Rathke <erack@redhat.com> | 2019-03-15 19:43:00 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2019-03-16 02:41:54 +0100 |
commit | 564d0d145cf9c164ea9c717b4b2113fd971fa0af (patch) | |
tree | 4ce72f219b3178b565134d4cc0ca2f0b6973b1ea /sc/inc/column.hxx | |
parent | afcf3c7fdef0c9b167b1346873bf1936050a4605 (diff) |
Related: tdf#123736 re-establish listeners also for vector unsharing
... via DetachFormulaCells()
Change-Id: Ia57308495a06e0df612eb1610b5f387d6b60ce08
Reviewed-on: https://gerrit.libreoffice.org/69320
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'sc/inc/column.hxx')
-rw-r--r-- | sc/inc/column.hxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx index 8664c81c0c20..da635280c71d 100644 --- a/sc/inc/column.hxx +++ b/sc/inc/column.hxx @@ -647,10 +647,12 @@ public: /** Re-establish listeners on unshared formula groups */ void StartListeningUnshared( const std::vector<SCROW>& rNewSharedRows ); - void DetachFormulaCells( const sc::CellStoreType::position_type& aPos, size_t nLength ); + void DetachFormulaCells( const sc::CellStoreType::position_type& aPos, size_t nLength, + std::vector<SCROW>* pNewSharedRows ); void AttachFormulaCells( sc::StartListeningContext& rCxt, SCROW nRow1, SCROW nRow2 ); - void DetachFormulaCells( sc::EndListeningContext& rCxt, SCROW nRow1, SCROW nRow2 ); + void DetachFormulaCells( sc::EndListeningContext& rCxt, SCROW nRow1, SCROW nRow2, + std::vector<SCROW>* pNewSharedRows ); /** * Regroup formula cells for the entire column. @@ -714,7 +716,9 @@ private: const std::vector<SCROW>& rNewSharedRows, bool bJoin = true, sc::StartListeningType eListenType = sc::SingleCellListening ); - void AttachNewFormulaCells( const sc::CellStoreType::position_type& aPos, size_t nLength ); + void AttachNewFormulaCells( const sc::CellStoreType::position_type& aPos, size_t nLength, + const std::vector<SCROW>& rNewSharedRows ); + void BroadcastNewCell( SCROW nRow ); bool UpdateScriptType( sc::CellTextAttr& rAttr, SCROW nRow, sc::CellStoreType::iterator& itr ); |