Kaydet (Commit) 2bf2dee0 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

Werror=strict-overflow

Change-Id: Id9eaa7af7f12c22d675561fa4e86767c36bf6d15
üst 8a0298fc
......@@ -673,7 +673,7 @@ sal_Int32 SwTxtFrm::FindBrk( const OUString &rTxt,
sal_Bool SwTxtFrm::IsIdxInside( const sal_Int32 nPos, const sal_Int32 nLen ) const
{
if( GetOfst() > nPos + nLen ) // the range preceded us
if( nPos + nLen < 0 || GetOfst() > nPos + nLen ) // the range preceded us
return sal_False;
if( !GetFollow() ) // the range doesn't precede us,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment