Kaydet (Commit) b9b6e413 authored tarafından Caolán McNamara's avatar Caolán McNamara

refactor IsRedlineAtEnd

should be no logic change, just added a comment as to
what is going on here and ready for extension

Change-Id: Ibf1a3893ece9a09ad342bb06f39e119c1340e0db
üst 5e2492b9
...@@ -1258,16 +1258,20 @@ bool SwWW8AttrIter::IsRedlineAtEnd( sal_Int32 nEnd ) const ...@@ -1258,16 +1258,20 @@ bool SwWW8AttrIter::IsRedlineAtEnd( sal_Int32 nEnd ) const
for( sal_uInt16 nPos = nCurRedlinePos; for( sal_uInt16 nPos = nCurRedlinePos;
nPos < m_rExport.pDoc->getIDocumentRedlineAccess().GetRedlineTbl().size(); ++nPos ) nPos < m_rExport.pDoc->getIDocumentRedlineAccess().GetRedlineTbl().size(); ++nPos )
{ {
const SwPosition* pEnd = m_rExport.pDoc->getIDocumentRedlineAccess().GetRedlineTbl()[ nPos ]->End(); const SwRangeRedline *pRange = m_rExport.pDoc->getIDocumentRedlineAccess().GetRedlineTbl()[nPos];
if( pEnd->nNode != rNd ) const SwPosition* pEnd = pRange->End();
{ if (pEnd->nNode == rNd)
break;
}
if( pEnd->nContent.GetIndex() == nEnd )
{ {
return true; // In word the paragraph end marker is a real character, in writer it is not.
if (pEnd->nContent.GetIndex() == nEnd)
{
// This condition detects if the pseudo-char we will export is affected
// by redlining
return true;
}
} }
else
break;
} }
return false; return false;
} }
......
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