Kaydet (Commit) caaf97fa authored tarafından Michael Stahl's avatar Michael Stahl Kaydeden (comit) Andras Timar

sw: WW8 export: speed up attribute iteration

Change-Id: I9da47d7add4fadf34fd4e3c9aa6f1e65cf100b20
(cherry picked from commit ef82115a)
üst c2cd8772
......@@ -1230,6 +1230,8 @@ int SwWW8AttrIter::OutAttrWithRange(sal_Int32 nPos)
}
break;
}
if (nPos < *pHt->GetAnyEnd())
break; // sorted by end
}
for ( size_t i = 0; i < pTextAttrs->Count(); ++i )
{
......@@ -1282,6 +1284,8 @@ int SwWW8AttrIter::OutAttrWithRange(sal_Int32 nPos)
}
break;
}
if (nPos < pHt->GetStart())
break; // sorted by start
}
m_rExport.m_aCurrentCharPropStarts.pop(); // HasTextItem only allowed in the above range
}
......
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