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

sw_redlinehide: convert SwTextFrame::CalcFootnoteFlag to MergedAttrIter

Change-Id: Ib92ec14baece3a7c99683df9008837525e692760
üst 956ae177
......@@ -90,12 +90,6 @@ void SwTextFrame::CalcFootnoteFlag()
{
mbFootnote = false;
const SwpHints *pHints = GetTextNode()->GetpSwpHints();
if( !pHints )
return;
const size_t nSize = pHints->Count();
#ifdef DBG_UTIL
const TextFrameIndex nEnd = nStop != TextFrameIndex(COMPLETE_STRING)
? nStop
......@@ -106,12 +100,13 @@ void SwTextFrame::CalcFootnoteFlag()
: TextFrameIndex(COMPLETE_STRING);
#endif
for ( size_t i = 0; i < nSize; ++i )
SwTextNode const* pNode(nullptr);
sw::MergedAttrIter iter(*this);
for (SwTextAttr const* pHt = iter.NextAttr(&pNode); pHt; pHt = iter.NextAttr(&pNode))
{
const SwTextAttr *pHt = pHints->Get(i);
if ( pHt->Which() == RES_TXTATR_FTN )
{
const sal_Int32 nIdx = pHt->GetStart();
TextFrameIndex const nIdx(MapModelToView(pNode, pHt->GetStart()));
if ( nEnd < nIdx )
break;
if( GetOfst() <= nIdx )
......
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