diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-05-27 11:40:28 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-05-27 11:47:38 +0200 |
commit | 813faac457bb9bd76d826cfc2ae4bf61f6e583b4 (patch) | |
tree | 7d13b4cb0518d14f7aaa0c470f9b77a0bf091e51 | |
parent | c986e271adcc0a3d3feffade6f0191f1c155640f (diff) |
tdf#91145: Set Cell Background Color in Table Broken in Writer 5.0
- iterate over PaMs, not over Shells
- regression from 0ed7c8b55a026d7d98f9c994ad5e8626dd9504b2
Change-Id: I33ea486d416a7e64fd97938ce09492209c102c88
-rw-r--r-- | sw/source/core/crsr/crsrsh.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx index 98dc7fddc554..9a027c17f734 100644 --- a/sw/source/core/crsr/crsrsh.cxx +++ b/sw/source/core/crsr/crsrsh.cxx @@ -909,12 +909,12 @@ void SwCrsrShell::ClearMark() // is there any GetMark? if( m_pTableCrsr ) { - std::vector<SwViewShell*> vShells; - for(SwViewShell& rShell : GetRingContainer()) - if(&rShell != this) - vShells.push_back(&rShell); - for(SwViewShell* pShell : vShells) - delete pShell; + std::vector<SwPaM*> vCrsrs; + for(auto& rCrsr : m_pCurCrsr->GetRingContainer()) + if(&rCrsr != m_pCurCrsr) + vCrsrs.push_back(&rCrsr); + for(auto pCrsr : vCrsrs) + delete pCrsr; m_pTableCrsr->DeleteMark(); m_pCurCrsr->DeleteMark(); |