[Libreoffice-commits] core.git: sw/source
Tomaž Vajngerl
quikee at gmail.com
Mon Feb 10 14:49:57 PST 2014
sw/source/core/text/txtfrm.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 2bf2dee04c1d698e586316c2bd18a3e34df4be77
Author: Tomaž Vajngerl <quikee at gmail.com>
Date: Mon Feb 10 23:48:34 2014 +0100
Werror=strict-overflow
Change-Id: Id9eaa7af7f12c22d675561fa4e86767c36bf6d15
diff --git a/sw/source/core/text/txtfrm.cxx b/sw/source/core/text/txtfrm.cxx
index 7031b54..9a2aa38 100644
--- a/sw/source/core/text/txtfrm.cxx
+++ b/sw/source/core/text/txtfrm.cxx
@@ -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,
More information about the Libreoffice-commits
mailing list