sw/source/core/access/acccell.cxx | 2 +- sw/source/core/access/accframebase.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit 8f85d3db0b8b1dcfc399be4afbbc68a04c558a64 Author: Michael Stahl <michael.st...@cib.de> AuthorDate: Mon Dec 3 12:18:57 2018 +0100 Commit: Michael Stahl <michael.st...@cib.de> CommitDate: Mon Dec 3 16:46:10 2018 +0100 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.st...@cib.de> (cherry picked from commit d1138d72ed4f5c2ada2dd53f4b091964d8a284e6) Reviewed-on: https://gerrit.libreoffice.org/64451 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 ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits