sw/source/core/text/txtfrm.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit cedbbe2f78a6a07d79b43d71f36738b46cf62c38 Author: Miklos Vajna <vmik...@collabora.co.uk> Date: Thu May 1 14:30:12 2014 +0200 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 diff --git a/sw/source/core/text/txtfrm.cxx b/sw/source/core/text/txtfrm.cxx index 1da7fa4..bd4fc8c 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(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits