summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/pam.hxx2
-rw-r--r--sw/inc/swcrsr.hxx6
2 files changed, 5 insertions, 3 deletions
diff --git a/sw/inc/pam.hxx b/sw/inc/pam.hxx
index fde6d69da065..900793dbe969 100644
--- a/sw/inc/pam.hxx
+++ b/sw/inc/pam.hxx
@@ -71,6 +71,8 @@ struct SAL_WARN_UNUSED SW_DLLPUBLIC SwPosition
void dumpAsXml(xmlTextWriterPtr pWriter) const;
+ SwNodeOffset GetNodeIndex() const { return nNode.GetIndex(); }
+
// Gets pointer on NodesArray.
const SwNodes& GetNodes() const { return nNode.GetNodes(); }
SwNodes& GetNodes() { return nNode.GetNodes(); }
diff --git a/sw/inc/swcrsr.hxx b/sw/inc/swcrsr.hxx
index 27f42c0bd72d..c78a5bea80ed 100644
--- a/sw/inc/swcrsr.hxx
+++ b/sw/inc/swcrsr.hxx
@@ -245,7 +245,7 @@ struct SwCursor_SavePos final
sal_Int32 nContent;
SwCursor_SavePos( const SwCursor& rCursor )
- : nNode( rCursor.GetPoint()->nNode.GetIndex() ),
+ : nNode( rCursor.GetPoint()->GetNodeIndex() ),
nContent( rCursor.GetPoint()->nContent.GetIndex() )
{}
};
@@ -289,8 +289,8 @@ public:
// Has table cursor been changed?
bool IsCursorMoved() const
{
- return m_nTableMkNd != GetMark()->nNode.GetIndex() ||
- m_nTablePtNd != GetPoint()->nNode.GetIndex() ||
+ return m_nTableMkNd != GetMark()->GetNodeIndex() ||
+ m_nTablePtNd != GetPoint()->GetNodeIndex() ||
m_nTableMkCnt != GetMark()->nContent.GetIndex() ||
m_nTablePtCnt != GetPoint()->nContent.GetIndex();
}