diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-15 12:59:37 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-15 13:26:10 +0000 |
commit | e34dfee7aac32df393a62a13c36fa13f8a6e9589 (patch) | |
tree | 1192c3773f095ca8a011553230913947c83e1725 /sw | |
parent | 4517598a73fdfc67330979fbaedf2a8fb8f56489 (diff) |
Related: #i17171# foul addition of MAX value to offset
Change-Id: I5e1cdedeb09883f8ca3410ec51b5b87b7bbd67e3
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/text/txtfrm.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/core/text/txtfrm.cxx b/sw/source/core/text/txtfrm.cxx index 9bc457aac7bc..af43321f6adf 100644 --- a/sw/source/core/text/txtfrm.cxx +++ b/sw/source/core/text/txtfrm.cxx @@ -886,7 +886,10 @@ static void lcl_ModifyOfst( SwTxtFrm* pFrm, sal_Int32 nPos, sal_Int32 nLen ) pFrm = pFrm->GetFollow(); while( pFrm ) { - pFrm->ManipOfst( pFrm->GetOfst() + nLen ); + if (nLen == COMPLETE_STRING) + pFrm->ManipOfst( COMPLETE_STRING ); + else + pFrm->ManipOfst( pFrm->GetOfst() + nLen ); pFrm = pFrm->GetFollow(); } } |