diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-05-01 14:30:12 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-05-01 15:27:35 +0200 |
commit | cedbbe2f78a6a07d79b43d71f36738b46cf62c38 (patch) | |
tree | 2104f06e38ce4df747874fe4e05612b845c47016 | |
parent | bd22c1ca588147dd522542fcc39ba8b3f5c3b16c (diff) |
fdo#78153 SwTxtFrm::ManipOfst() requires a valid position
At least it seems that after setting the offset to the largest possible
value (instead of COMPLETE_STRING), things get back to normal.
Change-Id: I25fafd277eaf480f9ae232254ced3946589aa562
-rw-r--r-- | sw/source/core/text/txtfrm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/txtfrm.cxx b/sw/source/core/text/txtfrm.cxx index 1da7fa4e3b2e..bd4fc8cf1b08 100644 --- a/sw/source/core/text/txtfrm.cxx +++ b/sw/source/core/text/txtfrm.cxx @@ -831,7 +831,7 @@ static void lcl_ModifyOfst( SwTxtFrm* pFrm, sal_Int32 nPos, sal_Int32 nLen ) while( pFrm ) { if (nLen == COMPLETE_STRING) - pFrm->ManipOfst( COMPLETE_STRING ); + pFrm->ManipOfst( pFrm->GetTxtNode()->GetTxt().getLength() ); else pFrm->ManipOfst( pFrm->GetOfst() + nLen ); pFrm = pFrm->GetFollow(); |