Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


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


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.