diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-05-08 23:43:06 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-05-26 00:51:07 +0200 |
commit | 4be419852b0fde877b707e2b6cf7442517d38d46 (patch) | |
tree | 1cf36c9504c7527f5b67c82425ab340966dabe70 /sw/source/core/doc/CntntIdxStore.cxx | |
parent | 1bde96338b22d3b753f5fd2c32ba84164be35e3c (diff) |
CntntIdxStore should also handle new unocrsrs
Change-Id: I37a120f891a07acdc467d0197d112139ec9b8c01
Diffstat (limited to 'sw/source/core/doc/CntntIdxStore.cxx')
-rw-r--r-- | sw/source/core/doc/CntntIdxStore.cxx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sw/source/core/doc/CntntIdxStore.cxx b/sw/source/core/doc/CntntIdxStore.cxx index 119376d84e3d..b9dc0e526734 100644 --- a/sw/source/core/doc/CntntIdxStore.cxx +++ b/sw/source/core/doc/CntntIdxStore.cxx @@ -394,6 +394,24 @@ void ContentIdxStoreImpl::SaveUnoCrsrs(SwDoc* pDoc, sal_uLong nNode, sal_Int32 n } } } + for (auto pWeakUnoCrsr : pDoc->mvUnoCrsrTbl2) + { + auto pUnoCrsr(pWeakUnoCrsr.lock()); + if(!pUnoCrsr) + continue; + for(SwPaM& rPaM : (const_cast<SwUnoCrsr*>(pUnoCrsr.get()))->GetRingContainer()) + { + lcl_ChkPaMBoth( m_aUnoCrsrEntries, nNode, nContent, rPaM); + } + const SwUnoTableCrsr* pUnoTblCrsr = dynamic_cast<const SwUnoTableCrsr*>(pUnoCrsr.get()); + if( pUnoTblCrsr ) + { + for(SwPaM& rPaM : (&(const_cast<SwUnoTableCrsr*>(pUnoTblCrsr))->GetSelRing())->GetRingContainer()) + { + lcl_ChkPaMBoth( m_aUnoCrsrEntries, nNode, nContent, rPaM); + } + } + } } void ContentIdxStoreImpl::RestoreUnoCrsrs(updater_t& rUpdater) |