diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-12-03 12:18:57 +0100 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-12-03 16:46:10 +0100 |
commit | 8f85d3db0b8b1dcfc399be4afbbc68a04c558a64 (patch) | |
tree | 82d6550e01fc275536e0ee8ded2e48ec777d2833 /sw | |
parent | e45c30858dec1dd705b9144fab981a3c8819ba96 (diff) |
sw: convert assert(bSelected out of sync) to SAL_WARN for now
This evidently happens sometimes, but when it does it it's
impossible to reproduce... Let's use SAL_WARN for now.
Change-Id: Id724fd52060bfae45f9eeb16163ddfc94e53af03
Reviewed-on: https://gerrit.libreoffice.org/64447
Tested-by: Jenkins
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
(cherry picked from commit d1138d72ed4f5c2ada2dd53f4b091964d8a284e6)
Reviewed-on: https://gerrit.libreoffice.org/64451
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/access/acccell.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/access/accframebase.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/access/acccell.cxx b/sw/source/core/access/acccell.cxx index 2f47fd40d32c..9589ac0a893c 100644 --- a/sw/source/core/access/acccell.cxx +++ b/sw/source/core/access/acccell.cxx @@ -91,7 +91,7 @@ void SwAccessibleCell::GetStates( ::utl::AccessibleStateSetHelper& rStateSet ) if( IsSelected() ) { rStateSet.AddState( AccessibleStateType::SELECTED ); - assert(m_bIsSelected && "bSelected out of sync"); + SAL_WARN_IF(!m_bIsSelected, "sw.a11y", "bSelected out of sync"); ::rtl::Reference < SwAccessibleContext > xThis( this ); GetMap()->SetCursorContext( xThis ); } diff --git a/sw/source/core/access/accframebase.cxx b/sw/source/core/access/accframebase.cxx index 4c6ce1175577..f53edaa4ea3b 100644 --- a/sw/source/core/access/accframebase.cxx +++ b/sw/source/core/access/accframebase.cxx @@ -82,7 +82,7 @@ void SwAccessibleFrameBase::GetStates( if( IsSelected() ) { rStateSet.AddState( AccessibleStateType::SELECTED ); - assert(m_bIsSelected && "bSelected out of sync"); + SAL_WARN_IF(!m_bIsSelected, "sw.a11y", "bSelected out of sync"); ::rtl::Reference < SwAccessibleContext > xThis( this ); GetMap()->SetCursorContext( xThis ); |