diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-23 11:42:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-23 13:10:09 +0200 |
commit | 6b544507b01d479b991d3ba7c949cb70696a3f2e (patch) | |
tree | c0e19153fe616e9fae580ef532c1516a2c565981 /sw/inc | |
parent | 1c8ad4c95bd99dc6f8a105c109c725cbe92def26 (diff) |
Use more SwPosition::Adjust
to keep the internal fields of SwPosition in sync.
Add a new SwPosition::AdjustContent for when we need to update the
context index alone
Change-Id: Iad277f742a903157afdacd1d5c11b2abfa7d477c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138723
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/pam.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/inc/pam.hxx b/sw/inc/pam.hxx index 7002d07a017d..69d960c2881c 100644 --- a/sw/inc/pam.hxx +++ b/sw/inc/pam.hxx @@ -97,6 +97,8 @@ struct SAL_WARN_UNUSED SW_DLLPUBLIC SwPosition void AssignEndIndex( const SwContentNode& rNd ); /// Adjust node position, and resets content position to zero void Adjust( SwNodeOffset nDelta ); + /// Adjust content index, only valid to call this if the position points to a SwContentNode subclass + void AdjustContent( sal_Int32 nDelta ); }; SW_DLLPUBLIC std::ostream &operator <<(std::ostream& s, const SwPosition& position); |