Before this patch, when importing from docx, if there were no parent numbering levels in the number formats for outline numbered paragraphs, the import would include all parent levels back to the second numbering level, in the third and subsequent numbering levels.
--- writerfilter/source/dmapper/NumberingManager.cxx | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/writerfilter/source/dmapper/NumberingManager.cxx b/writerfilter/source/dmapper/NumberingManager.cxx index f987250..c6b9e8b 100644 --- a/writerfilter/source/dmapper/NumberingManager.cxx +++ b/writerfilter/source/dmapper/NumberingManager.cxx @@ -144,7 +144,7 @@ void ListLevel::SetValue( Id nId, sal_Int32 nValue ) sal_Int16 ListLevel::GetParentNumbering( OUString sText, sal_Int16 nLevel, OUString& rPrefix, OUString& rSuffix ) { - sal_Int16 nParentNumbering = nLevel; + sal_Int16 nParentNumbering = 1; //now parse the text to find %n from %1 to %nLevel+1 //everything before the first % and the last %x is prefix and suffix -- 1.7.2.5 _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice