summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/docruby.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/doc/docruby.cxx')
-rw-r--r--sw/source/core/doc/docruby.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/doc/docruby.cxx b/sw/source/core/doc/docruby.cxx
index 801f4b92653b..851695e80b8d 100644
--- a/sw/source/core/doc/docruby.cxx
+++ b/sw/source/core/doc/docruby.cxx
@@ -178,7 +178,7 @@ bool SwDoc::SelectNextRubyChars( SwPaM& rPam, SwRubyListEntry& rEntry )
SwPosition* pPos = rPam.GetPoint();
const SwTextNode* pTNd = pPos->GetNode().GetTextNode();
OUString const& rText = pTNd->GetText();
- sal_Int32 nStart = pPos->nContent.GetIndex();
+ sal_Int32 nStart = pPos->GetContentIndex();
sal_Int32 nEnd = rText.getLength();
bool bHasMark = rPam.HasMark();
@@ -188,7 +188,7 @@ bool SwDoc::SelectNextRubyChars( SwPaM& rPam, SwRubyListEntry& rEntry )
if( rPam.GetMark()->nNode == pPos->nNode )
{
// then use that end
- const sal_Int32 nTEnd = rPam.GetMark()->nContent.GetIndex();
+ const sal_Int32 nTEnd = rPam.GetMark()->GetContentIndex();
if( nTEnd < nEnd )
nEnd = nTEnd;
}
@@ -248,7 +248,7 @@ bool SwDoc::SelectNextRubyChars( SwPaM& rPam, SwRubyListEntry& rEntry )
{
rPam.SetMark();
pPos->nContent = pAttr->GetAnyEnd();
- if( pPos->nContent.GetIndex() > nEnd )
+ if( pPos->GetContentIndex() > nEnd )
pPos->nContent = nEnd;
rEntry.SetRubyAttr( pAttr->GetRuby() );
}
@@ -304,12 +304,12 @@ bool SwDoc::SelectNextRubyChars( SwPaM& rPam, SwRubyListEntry& rEntry )
}
}
pTNd->GoNext( &pPos->nContent, SwCursorSkipMode::Chars );
- nStart = pPos->nContent.GetIndex();
+ nStart = pPos->GetContentIndex();
}
- nStart = rPam.GetMark()->nContent.GetIndex();
+ nStart = rPam.GetMark()->GetContentIndex();
rEntry.SetText( rText.copy( nStart,
- rPam.GetPoint()->nContent.GetIndex() - nStart ));
+ rPam.GetPoint()->GetContentIndex() - nStart ));
return rPam.HasMark();
}