diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-24 09:47:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-24 11:38:27 +0200 |
commit | be9644c5b6aeecdb363d4fc9ba4a113c6280ae80 (patch) | |
tree | a026199aa8cb17c2549d0eaaa1139512a684664c /sw/source/filter/ww8/ww8par5.cxx | |
parent | 6ba1f58c58857812d85e7c57d2f612ca80216786 (diff) |
use SwNode instead of SwNodeIndex in WillHavePageDescHere method
part of the process of hiding the internals of SwPosition
Change-Id: Ib671c8a0588e7e53567b2ed02ff6169226d7c2e1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138752
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 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/filter/ww8/ww8par5.cxx b/sw/source/filter/ww8/ww8par5.cxx index bd17737753ef..12b940b96a9d 100644 --- a/sw/source/filter/ww8/ww8par5.cxx +++ b/sw/source/filter/ww8/ww8par5.cxx @@ -2970,13 +2970,13 @@ sal_uInt16 wwSectionManager::CurrentSectionColCount() const //Will there be a new pagebreak at this position (don't know what type //until later) -bool wwSectionManager::WillHavePageDescHere(const SwNodeIndex& rIdx) const +bool wwSectionManager::WillHavePageDescHere(const SwNode& rNd) const { bool bRet = false; if (!maSegments.empty()) { if (!maSegments.back().IsContinuous() && - maSegments.back().maStart == rIdx) + maSegments.back().maStart == rNd) { bRet = true; } @@ -3469,7 +3469,7 @@ eF_ResT SwWW8ImplReader::Read_F_Tox( WW8FieldDesc* pF, OUString& rStr ) //Will there be a new pagebreak at this position (don't know what type //until later) - if (m_aSectionManager.WillHavePageDescHere(pPos->nNode)) + if (m_aSectionManager.WillHavePageDescHere(pPos->GetNode())) aFltTOX.SetHadPageDescItem(true); // Set start in stack |