Kaydet (Commit) 6410a654 authored tarafından Michael Stahl's avatar Michael Stahl

sw_redlinehide_2: fix FrameContainsNode() to use pLastNode

Change-Id: Iaa67b9a0134971917c18c9d6f678f6d2913db666
üst c9fea568
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment