diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-04-13 10:32:21 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-04-13 15:52:08 +0200 |
commit | e8c2ae74ea433d9d75baf7ff8a349a0c86ace657 (patch) | |
tree | c5b305a8cf0b49cd676a8787b799dd32aef7979b /sw/source/core/text/txtfrm.cxx | |
parent | 064f4fe82c30118a34c4aeb47bf8604f0b8356a1 (diff) |
give SwParaPortion a const GetDelta() and non-const SetDelta()
instead of two GetDeltas() one of which is non-const and returning a
reference that can be used to modify the delta
no logic change intended
Change-Id: Ia5788bfffd169a589eb9b9b141b60575ab165391
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132953
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/core/text/txtfrm.cxx')
-rw-r--r-- | sw/source/core/text/txtfrm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/txtfrm.cxx b/sw/source/core/text/txtfrm.cxx index dafcd98a8561..76f05e2c8d80 100644 --- a/sw/source/core/text/txtfrm.cxx +++ b/sw/source/core/text/txtfrm.cxx @@ -1710,7 +1710,7 @@ void SwTextFrame::InvalidateRange_( const SwCharRange &aRange, const tools::Long // linelengths are being added, that's why it's negative // if chars have been added and positive, if chars have // deleted - pPara->GetDelta() += nD; + pPara->SetDelta(pPara->GetDelta() + nD); bInv = true; } SwCharRange &rReformat = pPara->GetReformat(); |