diff options
Diffstat (limited to 'sw/source/core/access/accmap.cxx')
-rw-r--r-- | sw/source/core/access/accmap.cxx | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx index bd77f85b5edb..a720020a7fc4 100644 --- a/sw/source/core/access/accmap.cxx +++ b/sw/source/core/access/accmap.cxx @@ -1389,16 +1389,14 @@ void SwAccessibleMap::InvalidateShapeInParaSelection() mpSeletedFrameMap->clear(); } - if( !mapTemp.empty() ) + SwAccessibleContextMap_Impl::iterator aIter = mapTemp.begin(); + while( aIter != mapTemp.end() ) { - SwAccessibleContextMap_Impl::iterator aIter = mapTemp.begin(); - while( aIter != mapTemp.end() ) - { - mpSeletedFrameMap->emplace( (*aIter).first, (*aIter).second ); - ++aIter; - } - mapTemp.clear(); + mpSeletedFrameMap->emplace( (*aIter).first, (*aIter).second ); + ++aIter; } + mapTemp.clear(); + if( bMarkChanged && mpFrameMap) { for (SwAccessibleContext* pAccPara : vecAdd) |