summaryrefslogtreecommitdiffstats
path: root/sw/source/filter/ww8/wrtw8nds.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-06-18 00:21:24 +0200
committerMichael Stahl <mstahl@redhat.com>2015-06-18 00:36:29 +0200
commitef82115aef668b649a80324f5cd126f93a169c4d (patch)
tree4bae343f2024e6a2970266c45432d5fe00604819 /sw/source/filter/ww8/wrtw8nds.cxx
parentsw: DOCX export: fix exporting of hyperlink inside ruby (diff)
downloadcore-ef82115aef668b649a80324f5cd126f93a169c4d.tar.gz
core-ef82115aef668b649a80324f5cd126f93a169c4d.zip
sw: WW8 export: speed up attribute iteration
Change-Id: I9da47d7add4fadf34fd4e3c9aa6f1e65cf100b20
Diffstat (limited to 'sw/source/filter/ww8/wrtw8nds.cxx')
-rw-r--r--sw/source/filter/ww8/wrtw8nds.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/wrtw8nds.cxx b/sw/source/filter/ww8/wrtw8nds.cxx
index e478f1da62a5..7eb5dece7130 100644
--- a/sw/source/filter/ww8/wrtw8nds.cxx
+++ b/sw/source/filter/ww8/wrtw8nds.cxx
@@ -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
}