[Libreoffice-commits] core.git: sw/source

Miklos Vajna vmiklos at collabora.co.uk
Thu May 1 06:28:17 PDT 2014


 sw/source/core/text/txtfrm.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit cedbbe2f78a6a07d79b43d71f36738b46cf62c38
Author: Miklos Vajna <vmiklos at 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();


More information about the Libreoffice-commits mailing list