summaryrefslogtreecommitdiff
path: root/sw/source/core/edit/edfcol.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-09-27 20:47:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-09-28 08:43:16 +0200
commitada3cf7a8392c59932fc339357cda9c3dda5c33f (patch)
tree29e13f32859d6711412ca0cdc67fa69942ed2a8e /sw/source/core/edit/edfcol.cxx
parent949f0fca3cbe3d80c4aaebe6b7d7f4a8beb2fc13 (diff)
use more SwPosition::Assign
part of the process of hiding the internals of SwPosition Change-Id: I1157df373fd1462dc44b3828ec4de667fcdc02bb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140672 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/edit/edfcol.cxx')
-rw-r--r--sw/source/core/edit/edfcol.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/edit/edfcol.cxx b/sw/source/core/edit/edfcol.cxx
index d4f1c84dc76d..02efb6b4433e 100644
--- a/sw/source/core/edit/edfcol.cxx
+++ b/sw/source/core/edit/edfcol.cxx
@@ -2223,8 +2223,8 @@ void SwEditShell::SetTextFormatColl(SwTextFormatColl *pFormat,
SwPaM aPaM(*rPaM.Start(), *rPaM.End());
if (SwTextNode* pEndTextNode = aPaM.End()->GetNode().GetTextNode())
{
- aPaM.Start()->nContent = 0;
- aPaM.End()->nContent = pEndTextNode->GetText().getLength();
+ aPaM.Start()->SetContent(0);
+ aPaM.End()->SetContent(pEndTextNode->GetText().getLength());
}
GetDoc()->RstTextAttrs(aPaM, /*bInclRefToxMark=*/false, /*bExactRange=*/true, GetLayout());