summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-05-13 16:11:09 +0200
committerMichael Stahl <mstahl@redhat.com>2016-05-13 16:15:48 +0200
commitf9c92771af05886c2d35f4446d514488fd448109 (patch)
treed58ce72953f6a06a1123eb02eb9fe3a3495b003a /sw
parent6afa142fdecc3a7f2f182bcd2c035bf3089f1ce8 (diff)
sw: document the MoveInvalidXAccToEnd() oddity
Change-Id: I9e1e3b277a75a2f8c95fa71308af6aff7d81ccc7
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/access/accmap.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx
index 24dae46d111c..4c2aaaec4698 100644
--- a/sw/source/core/access/accmap.cxx
+++ b/sw/source/core/access/accmap.cxx
@@ -516,10 +516,12 @@ public:
return mbFiring;
}
- void MoveInvalidXAccToEnd();
+ void MoveMissingXAccToEnd();
};
-void SwAccessibleEventList_Impl::MoveInvalidXAccToEnd()
+// see comment in SwAccessibleMap::InvalidatePosOrSize()
+// last case "else if(pParent)" for why this surprising hack exists
+void SwAccessibleEventList_Impl::MoveMissingXAccToEnd()
{
size_t nSize = size();
if (nSize < 2 )
@@ -3085,7 +3087,7 @@ void SwAccessibleMap::FireEvents()
if( mpEvents )
{
mpEvents->SetFiring();
- mpEvents->MoveInvalidXAccToEnd();
+ mpEvents->MoveMissingXAccToEnd();
for( auto const& aEvent : *mpEvents )
FireEvent(aEvent);