summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-12-14 16:21:53 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-12-14 16:38:42 +0100
commitf8320ddcf067b9ef88cb5c2f914aed197c457417 (patch)
tree5e4f813dd1a59be447012b4744b886e4a1f0e9e0 /sw/source
parentd737f8220f97f3060b87c05cca3ecaf3e80f9878 (diff)
DOC export: fix writing multiple smart tags
No testcase as our importer doesn't read this structure, but Word complained about this. Change-Id: I91f947233802ea6fb103c32fd774bad09c56764e
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/filter/ww8/wrtww8.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx
index 8a30c1b8fb44..ae956e04be3b 100644
--- a/sw/source/filter/ww8/wrtww8.cxx
+++ b/sw/source/filter/ww8/wrtww8.cxx
@@ -358,11 +358,11 @@ void WW8_WrtFactoids::Write(WW8Export& rExport)
rStream.WriteUInt16(0xffff); // fExtend
rStream.WriteUInt16(m_aStartCPs.size()); // cData
rStream.WriteUInt16(0); // cbExtra
- rStream.WriteUInt16(6); // cchData
- // Write FACTOIDINFO.
for (size_t i = 0; i < m_aStartCPs.size(); ++i)
{
+ rStream.WriteUInt16(6); // cchData
+ // Write FACTOIDINFO.
rStream.WriteUInt32(i); // dwId
rStream.WriteUInt16(0); // fSubEntry
rStream.WriteUInt16(0); // fto