summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2013-09-18 19:03:17 +0200
committerJan Holesovsky <kendy@collabora.com>2013-09-18 19:11:16 +0200
commitc5c17b6a5f9d756ece6757159ee3be4494e9aca7 (patch)
tree2bd233af779c068f9492e411a22ea01f9ae0e572 /sw
parenta19bcc4c876b1f94c27e55c3813cfc878df3e377 (diff)
DOCX styles: Don't export <w:next> for styles that point to themselves.
Change-Id: I3f877f9dc836686e91df70ff1e02e67ca25b4a84
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/docxattributeoutput.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index dc317cae101a..7d060ea61802 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -3265,9 +3265,12 @@ void DocxAttributeOutput::StartStyle( const String& rName, bool bPapFmt,
FSEND );
}
- m_pSerializer->singleElementNS( XML_w, XML_next,
- FSNS( XML_w, XML_val ), m_rExport.pStyles->GetStyleId(nNext).getStr(),
- FSEND );
+ if ( nNext != nId )
+ {
+ m_pSerializer->singleElementNS( XML_w, XML_next,
+ FSNS( XML_w, XML_val ), m_rExport.pStyles->GetStyleId(nNext).getStr(),
+ FSEND );
+ }
if ( bAutoUpdate )
m_pSerializer->singleElementNS( XML_w, XML_autoRedefine, FSEND );