[Libreoffice-commits] core.git: sw/qa sw/source

Mark Hung marklh9 at gmail.com
Sat Feb 14 13:49:16 PST 2015


 sw/qa/extras/ooxmlexport/data/outline-num-none.odt |binary
 sw/qa/extras/ooxmlexport/ooxmlexport.cxx           |    6 ++++++
 sw/source/filter/ww8/docxattributeoutput.cxx       |    2 +-
 3 files changed, 7 insertions(+), 1 deletion(-)

New commits:
commit 7f126fc8570da5c7275a4d4efe019b9ea3b5b073
Author: Mark Hung <marklh9 at gmail.com>
Date:   Sat Jan 24 06:50:03 2015 -0800

    tdf#87574 - Outline numbering "None" is not retained in docx
    
    Partially revert commit d30a8ec448bcd08c6a52a37d6ae41a4b71c235da
    (Correct number format mapping for CJK numbered lists in rtf/doc/docx
    filters., 2014-11-04).
    
    Conflicts:
    	sw/qa/extras/ooxmlexport/ooxmlexport.cxx
    Reviewed on:
    	https://gerrit.libreoffice.org/14211
    
    Change-Id: I0876ecd982cfd8d97887495b23af0e0370821101

diff --git a/sw/qa/extras/ooxmlexport/data/outline-num-none.odt b/sw/qa/extras/ooxmlexport/data/outline-num-none.odt
new file mode 100644
index 0000000..b3bb56d
Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/outline-num-none.odt differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
index dcdef6a..18c11ac 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
@@ -610,6 +610,12 @@ DECLARE_OOXMLEXPORT_TEST(testOoxmlNumListZHCN, "numlist-zhcn.odt")
     assertXPath ( pXmlDoc, "/w:numbering/w:abstractNum[1]/w:lvl[1]/w:numFmt","val","chineseCountingThousand" );
 }
 
+DECLARE_OOXMLEXPORT_TEST(testOOxmlOutlineNumNone, "outline-num-none.odt")
+{
+    if (xmlDocPtr pXmlDoc = parseExport("word/numbering.xml"))
+        assertXPath(pXmlDoc, "/w:numbering/w:abstractNum[1]/w:lvl[1]/w:numFmt", "val", "none");
+}
+
 DECLARE_OOXMLEXPORT_TEST(testNumParentStyle, "num-parent-style.docx")
 {
     // This was "Outline", i.e. <w:numId> was not imported from the Heading 2 paragraph style.
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index 16770ae..cdd9a69 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -5591,7 +5591,7 @@ static OString impl_LevelNFC( sal_uInt16 nNumberingType , const SfxItemSet *pOut
         case style::NumberingType::NUMBER_HANGUL_KO: aType="koreanDigital";break;
         case style::NumberingType::NUMBER_UPPER_KO: aType="koreanLegal"; break;
         default:
-            aType = "decimal";        break;
+            aType = "none";        break;
     }
     return aType;
 }


More information about the Libreoffice-commits mailing list