summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-12-03 12:18:57 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-12-04 16:40:19 +0100
commita9d6f0e078e5e6653bd620ddbdbc24de93c7ae51 (patch)
treeb55ca77646a0feefc8e439584576044cb58a2c3c /sw/source
parent0a906dc78b575d696d402fb81900700e6e8e761e (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 (cherry picked from commit 8f85d3db0b8b1dcfc399be4afbbc68a04c558a64) Reviewed-on: https://gerrit.libreoffice.org/64514 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/access/acccell.cxx2
-rw-r--r--sw/source/core/access/accframebase.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/access/acccell.cxx b/sw/source/core/access/acccell.cxx
index f75a6fda8cdd..9196f1d3e8da 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 d173c1166ecb..87b2246bb64a 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 );