sw/source/core/text/redlnitr.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit ee73d14e06180d8a60fc4fc34ab71f23095e7621
Author: Michael Stahl <[email protected]>
AuthorDate: Mon Jan 16 13:31:44 2023 +0100
Commit: Michael Stahl <[email protected]>
CommitDate: Tue Jan 17 10:10:59 2023 +0000
tdf#152872 sw: fix crash on ooo27109-1.sxw
Has a redline that ends on the body end node.
(regression from commit 2bcfb7231b5ca74f02274cfb74ca8463f78905d6)
Change-Id: I9dc89a496791935b9d28e1874f947b70fdf0b85a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145569
Tested-by: Jenkins
Reviewed-by: Michael Stahl <[email protected]>
diff --git a/sw/source/core/text/redlnitr.cxx b/sw/source/core/text/redlnitr.cxx
index acf83551cba6..c44b527536c1 100644
--- a/sw/source/core/text/redlnitr.cxx
+++ b/sw/source/core/text/redlnitr.cxx
@@ -234,6 +234,7 @@ public:
return false;
};
if (m_isHideParagraphBreaks
+ && m_pEndPos->GetNode().IsTextNode() // ooo27109-1.sxw
// only merge if next node is also text node
&&
m_pEndPos->GetNodes()[m_pEndPos->GetNodeIndex()+1]->IsTextNode()
&& hasHiddenItem(*m_pEndPos->GetNode().GetTextNode())