summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2025-04-11 20:00:06 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2025-04-12 12:32:18 +0200
commitfc227d83a3215a0ab7b010dcc77221ed15eff1f3 (patch)
tree906c26b75f6bb5a54fc1a908b0d735840228f661
parent080198e691c944cdf7553cfa86d52e33c2072f51 (diff)
Simplify SwPosition comparison
Change-Id: I77152569894382a7221b0dcb81a0307ed0217a14 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184072 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Jenkins
-rw-r--r--sw/source/filter/html/wrthtml.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/filter/html/wrthtml.cxx b/sw/source/filter/html/wrthtml.cxx
index a1ea378e5e09..434c71581840 100644
--- a/sw/source/filter/html/wrthtml.cxx
+++ b/sw/source/filter/html/wrthtml.cxx
@@ -941,9 +941,7 @@ void SwHTMLWriter::Out_SwDoc( SwPaM* pPam )
// search for first on PaM created FlyFrame
// still missing:
- while( m_pCurrentPam->GetPoint()->GetNodeIndex() < m_pCurrentPam->GetMark()->GetNodeIndex() ||
- (m_pCurrentPam->GetPoint()->GetNodeIndex() == m_pCurrentPam->GetMark()->GetNodeIndex() &&
- m_pCurrentPam->GetPoint()->GetContentIndex() <= m_pCurrentPam->GetMark()->GetContentIndex()) )
+ while (*m_pCurrentPam->GetPoint() <= *m_pCurrentPam->GetMark())
{
SwNode& rNd = m_pCurrentPam->GetPointNode();