diff options
Diffstat (limited to 'starmath/source/accessibility.cxx')
-rw-r--r-- | starmath/source/accessibility.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx index 17e8624e1ca2..93656c737ec8 100644 --- a/starmath/source/accessibility.cxx +++ b/starmath/source/accessibility.cxx @@ -240,10 +240,10 @@ awt::Size SAL_CALL SmGraphicAccessible::getSize() "mismatch of window parent and accessible parent" ); Size aSz( pWin->GetSizePixel() ); -#if OSL_DEBUG_LEVEL > 1 +#if OSL_DEBUG_LEVEL > 0 awt::Rectangle aRect( lcl_GetBounds( pWin ) ); Size aSz2( aRect.Width, aRect.Height ); - OSL_ENSURE( aSz == aSz2, "mismatch in width" ); + assert(aSz == aSz2 && "mismatch in width" ); #endif return awt::Size( aSz.Width(), aSz.Height() ); } @@ -1718,10 +1718,10 @@ awt::Size SAL_CALL SmEditAccessible::getSize( ) "mismatch of window parent and accessible parent" ); Size aSz( pWin->GetSizePixel() ); -#if OSL_DEBUG_LEVEL > 1 +#if OSL_DEBUG_LEVEL > 0 awt::Rectangle aRect( lcl_GetBounds( pWin ) ); Size aSz2( aRect.Width, aRect.Height ); - OSL_ENSURE( aSz == aSz2, "mismatch in width" ); + assert(aSz == aSz2 && "mismatch in width"); #endif return awt::Size( aSz.Width(), aSz.Height() ); } |