summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-12-05 16:49:34 +0100
committerMichael Stahl <Michael.Stahl@cib.de>2018-12-06 19:04:15 +0100
commit4f37f275015ee0c433efc09d8615d997f91d8a92 (patch)
tree3249567722083f781545e66e92bddef24e6a1a39
parenta12d8a0a77ad3a6e99857b706e161f4d62c7cb39 (diff)
sw_redlinehide_4b: fix crash in CanSkipOverRedline()
This was another IsDelLastPara() redline in ooo27109-1.sxw. Change-Id: I1f4198a4bcbed7bdd52991af3cb3322ebacc65fe
-rw-r--r--sw/source/core/text/itratr.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/text/itratr.cxx b/sw/source/core/text/itratr.cxx
index 827a29e8538f..8a3afaf5419c 100644
--- a/sw/source/core/text/itratr.cxx
+++ b/sw/source/core/text/itratr.cxx
@@ -458,7 +458,8 @@ static bool CanSkipOverRedline(SwRangeRedline const& rRedline,
size_t nEndIndex(rEndIndex);
SwPosition const*const pRLStart(rRedline.Start());
SwPosition const*const pRLEnd(rRedline.End());
- if (pRLEnd->nContent == pRLEnd->nNode.GetNode().GetTextNode()->Len())
+ if (!pRLEnd->nNode.GetNode().IsTextNode() // if fully deleted...
+ || pRLEnd->nContent == pRLEnd->nNode.GetNode().GetTextNode()->Len())
{
// shortcut: nothing follows redline
// current state is end state