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

sw: WW8 export: speed up attribute iteration

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