sw/source/filter/ww8/docxattributeoutput.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 264d27c94d7286a407b05a32f4097ac9d543e1a3
Author:     Serge Krot <serge.k...@cib.de>
AuthorDate: Tue Jan 14 16:03:08 2020 +0100
Commit:     Thorsten Behrens <thorsten.behr...@cib.de>
CommitDate: Wed Jan 15 10:49:31 2020 +0100

    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.behr...@cib.de>

diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx 
b/sw/source/filter/ww8/docxattributeoutput.cxx
index 25a59b0aa79c..25b22b8df5ed 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -7859,6 +7859,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
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to