summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorSerge Krot <Serge.Krot@cib.de>2020-01-14 16:03:08 +0100
committerMichael Stahl <michael.stahl@cib.de>2020-01-17 11:18:28 +0100
commit2bcd3ed723463279f7f3e90966a5589e5b8592cf (patch)
treea8e730128baff2e616aea180e09a125016812f6b /sw
parent51da0d22ff42b20ab38130b7874651ef136ecceb (diff)
tdf#126795 docx export: do not output tab stops twice
Change-Id: I70235df7fb73133f413863ee5eb7c76905a60248 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86767 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> (cherry picked from commit 264d27c94d7286a407b05a32f4097ac9d543e1a3) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86896 Reviewed-by: Serge Krot (CIB) <Serge.Krot@cib.de> (cherry picked from commit 6358fb7d3139a7b5ce0ea2394faa55ea1e2e4b6c) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86954 Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/docxattributeoutput.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index d1eb890ddc62..eefacf9c7047 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -7824,6 +7824,13 @@ void DocxAttributeOutput::ParaTabStop( const SvxTabStopItem& rTabStop )
return;
}
+ // do not output inherited tabs twice (inside styles and inside inline properties)
+ if ( nCount == nInheritedTabCount && nCount > 0 )
+ {
+ if ( *pInheritedTabs == rTabStop )
+ return;
+ }
+
m_pSerializer->startElementNS(XML_w, XML_tabs);
// Get offset for tabs