diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-09-13 20:42:03 +0200 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-09-19 10:18:33 +0200 |
commit | 6410a654058c3dc30461aa25d0197e579147edcc (patch) | |
tree | d8bc1f14528db73409c8c1f2524dedcc14e1b1eb /sw | |
parent | c9fea568b41351898ab5be9e0de46a26570a60dc (diff) |
sw_redlinehide_2: fix FrameContainsNode() to use pLastNode
Change-Id: Iaa67b9a0134971917c18c9d6f678f6d2913db666
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/text/txtfrm.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sw/source/core/text/txtfrm.cxx b/sw/source/core/text/txtfrm.cxx index 362d57809206..9853beda6a09 100644 --- a/sw/source/core/text/txtfrm.cxx +++ b/sw/source/core/text/txtfrm.cxx @@ -292,12 +292,7 @@ namespace sw { if (sw::MergedPara const*const pMerged = rTextFrame.GetMergedPara()) { sal_uLong const nFirst(pMerged->pFirstNode->GetIndex()); - sal_uLong nLast(nFirst); - // FIXME is this actually the last one? what about delete RL that dels last node until end, what happens to its anchored objs? - if (!pMerged->extents.empty()) - { - nLast = pMerged->extents.back().pNode->GetIndex(); - } + sal_uLong const nLast(pMerged->pLastNode->GetIndex()); return (nFirst <= nNodeIndex && nNodeIndex <= nLast); } else |