diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2022-08-14 18:02:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-14 21:28:37 +0200 |
commit | d0c07ec1cad386a0ec3bf34c6aa6e7b50859ef09 (patch) | |
tree | fd7050cd2011357ebba52ba3b82a5faea12f3971 /sw/inc/unocrsrhelper.hxx | |
parent | 895843ad466954b63f6f99a1b6319b7813d0dbe1 (diff) |
use more GetContentIndex
Change-Id: I48e36a95872b5c2bdb6b92c66403d4c08eedd38c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138255
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/unocrsrhelper.hxx')
-rw-r--r-- | sw/inc/unocrsrhelper.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/unocrsrhelper.hxx b/sw/inc/unocrsrhelper.hxx index 014421371ba0..af3c779f2288 100644 --- a/sw/inc/unocrsrhelper.hxx +++ b/sw/inc/unocrsrhelper.hxx @@ -86,10 +86,10 @@ namespace SwUnoCursorHelper void GetCurPageStyle(SwPaM const & rPaM, OUString &rString); inline bool IsStartOfPara(SwPaM& rUnoCursor) - { return rUnoCursor.GetPoint()->nContent == 0;} + { return rUnoCursor.GetPoint()->GetContentIndex() == 0;} inline bool IsEndOfPara(SwPaM& rUnoCursor) { return rUnoCursor.GetPointContentNode() && - rUnoCursor.GetPoint()->nContent == rUnoCursor.GetPointContentNode()->Len();} + rUnoCursor.GetPoint()->GetContentIndex() == rUnoCursor.GetPointContentNode()->Len();} void resetCursorPropertyValue(const SfxItemPropertyMapEntry& rEntry, SwPaM& rPam); /// @throws css::lang::IllegalArgumentException |