summaryrefslogtreecommitdiff
path: root/sw/source/core/access/accframebase.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/access/accframebase.cxx')
-rw-r--r--sw/source/core/access/accframebase.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/access/accframebase.cxx b/sw/source/core/access/accframebase.cxx
index 58c093f05441..1a5a8adde5a1 100644
--- a/sw/source/core/access/accframebase.cxx
+++ b/sw/source/core/access/accframebase.cxx
@@ -285,7 +285,7 @@ bool SwAccessibleFrameBase::GetSelectedState( )
const SwPosition *pPos = rAnchor.GetContentAnchor();
if( !pPos )
return false;
- int nIndex = pPos->nContent.GetIndex();
+ int nIndex = pPos->GetContentIndex();
if( pPos->GetNode().GetTextNode() )
{
SwPaM* pCursor = GetCursor();
@@ -310,8 +310,8 @@ bool SwAccessibleFrameBase::GetSelectedState( )
{
if( rAnchor.GetAnchorId() == RndStdIds::FLY_AS_CHAR )
{
- if( ((nHere == nStartIndex) && (nIndex >= pStart->nContent.GetIndex())) || (nHere > nStartIndex) )
- if( ((nHere == nEndIndex) && (nIndex < pEnd->nContent.GetIndex())) || (nHere < nEndIndex) )
+ if( ((nHere == nStartIndex) && (nIndex >= pStart->GetContentIndex())) || (nHere > nStartIndex) )
+ if( ((nHere == nEndIndex) && (nIndex < pEnd->GetContentIndex())) || (nHere < nEndIndex) )
return true;
}
else if( rAnchor.GetAnchorId() == RndStdIds::FLY_AT_PARA )