Kaydet (Commit) 1553ace0 authored tarafından Oliver Specht's avatar Oliver Specht Kaydeden (comit) Thorsten Behrens

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/18407Reviewed-by: 's avatarThorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: 's avatarThorsten Behrens <Thorsten.Behrens@CIB.de>
üst 8ab005af
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment