diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-24 09:46:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-24 11:35:47 +0200 |
commit | 6ba1f58c58857812d85e7c57d2f612ca80216786 (patch) | |
tree | 2c6d92043f25ba4941bce72f8d9c7df36f595999 /sw/source/filter/ww8/ww8par5.cxx | |
parent | 573d6a12a450949246516c8d69e173c8c7680fc2 (diff) |
Use more SwPosition::Adjust
to keep the internal fields of SwPosition in sync.
Change-Id: Ia11f4797fe0b7b0ba4fb368fe4f9918a2d577c87
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138751
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/ww8/ww8par5.cxx')
-rw-r--r-- | sw/source/filter/ww8/ww8par5.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8par5.cxx b/sw/source/filter/ww8/ww8par5.cxx index 4447d124f267..bd17737753ef 100644 --- a/sw/source/filter/ww8/ww8par5.cxx +++ b/sw/source/filter/ww8/ww8par5.cxx @@ -599,7 +599,7 @@ sal_uInt16 SwWW8ImplReader::End_Field() if (aRestorePos.GetContentIndex() > nMaxValidIndex) { SAL_WARN("sw.ww8", "Attempt to restore to invalid content position"); - aRestorePos.nContent.Assign(pNd, nMaxValidIndex); + aRestorePos.SetContent(nMaxValidIndex); } *m_pPaM->GetPoint() = aRestorePos; |