summaryrefslogtreecommitdiff
path: root/sw/source/core/text/itratr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/text/itratr.cxx')
-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