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

Oliver Specht oliver.specht at cib.de
Tue Sep 8 12:37:47 PDT 2015


 sw/source/core/doc/docfld.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 1553ace0a46c2659540dbf746aa862ccbb160ffd
Author: Oliver Specht <oliver.specht at cib.de>
Date:   Tue Sep 8 14:56:05 2015 +0200

    tdf#91523 sw: fix navigation to index mark
    
    Access pTextTox instead of pTextField in case of TEXTTOXMARK
    
    Change-Id: I92ece6f4c5d6a6427f89cbd43a15a4b0a3adb645
    Reviewed-on: https://gerrit.libreoffice.org/18407
    Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
    Tested-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>

diff --git a/sw/source/core/doc/docfld.cxx b/sw/source/core/doc/docfld.cxx
index 88015e3..410892e 100644
--- a/sw/source/core/doc/docfld.cxx
+++ b/sw/source/core/doc/docfld.cxx
@@ -323,9 +323,11 @@ sal_Int32 _SetGetExpField::GetCntPosFromContent() const
         {
         case TEXTFIELD:
         case TEXTINET:
-        case TEXTTOXMARK:
             nRet = CNTNT.pTextField->GetStart();
             break;
+        case TEXTTOXMARK:
+            nRet = CNTNT.pTextTOX->GetStart();
+            break;
         case CRSRPOS:
             nRet =  CNTNT.pPos->nContent.GetIndex();
             break;


More information about the Libreoffice-commits mailing list