[Libreoffice-commits] .: writerfilter/source

Lubos Lunak llunak at kemper.freedesktop.org
Mon Aug 1 07:40:19 PDT 2011


 writerfilter/source/dmapper/NumberingManager.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c3129d606cc06870e216d8342e54911784a40745
Author: Troy Rollo <libreoffice at troy.rollo.name>
Date:   Sat Jul 23 01:24:04 2011 +1000

    Fix parent level count in numbering from docx
    
    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.
    
    Signed-off-by: Luboš Luňák <l.lunak at suse.cz>

diff --git a/writerfilter/source/dmapper/NumberingManager.cxx b/writerfilter/source/dmapper/NumberingManager.cxx
index b8cfeac..b4de3e8 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


More information about the Libreoffice-commits mailing list