summaryrefslogtreecommitdiff
path: root/sw/source/core/access/accmap.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-01-13 10:26:07 +0000
committerCaolán McNamara <caolanm@redhat.com>2023-01-13 14:51:00 +0000
commit8c60271459c4ff61bd0c3a4df0274cefe942362d (patch)
treee2c7bbe0b2f4593de4f570a8aca1b0b2e41dd873 /sw/source/core/access/accmap.cxx
parent79ad3e73907d15c4e234e2a32de8173273f5ac16 (diff)
tdf#150708 if the old is CARET_OR_STATES then try updating it
with the additional states. Hard to know if this is a sensible approach. Change-Id: I0d55d41c4dd9cbb17fb736e5145671cd6a8b25ec Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145460 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/core/access/accmap.cxx')
-rw-r--r--sw/source/core/access/accmap.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx
index 4f33788504cb..13fcbe6a4be1 100644
--- a/sw/source/core/access/accmap.cxx
+++ b/sw/source/core/access/accmap.cxx
@@ -1060,8 +1060,15 @@ void SwAccessibleMap::AppendEvent( const SwAccessibleEvent_Impl& rEvent )
bAppendEvent = false;
break;
case SwAccessibleEvent_Impl::INVALID_ATTR:
- OSL_ENSURE( aEvent.GetType() == SwAccessibleEvent_Impl::INVALID_ATTR,
- "invalid event combination" );
+ // tdf#150708 if the old is CARET_OR_STATES then try updating it
+ // with the additional states
+ if (aEvent.GetType() == SwAccessibleEvent_Impl::CARET_OR_STATES)
+ aEvent.SetStates(rEvent.GetAllStates());
+ else
+ {
+ OSL_ENSURE( aEvent.GetType() == SwAccessibleEvent_Impl::INVALID_ATTR,
+ "invalid event combination" );
+ }
break;
}
if( bAppendEvent )