[Libreoffice-commits] .: sw/source

Lubos Lunak llunak at kemper.freedesktop.org
Thu Jul 28 08:40:48 PDT 2011


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

New commits:
commit 04e35708aaa625d180a5bb42591470508c40c522
Author: Troy Rollo <libreoffice at troy.rollo.name>
Date:   Sun Jul 24 00:03:57 2011 +1000

    Fix fdo#36868 - doc import list numbering error
    
    This patch appears to be fix fdo#36868. The problem is that the paragraph
    style was never being assigned an outline list level. The saved file did
    not have an sprmPOutLvl for that paragraph (although it did have one for
    the level 0 style), just an sprmPIlvl and an sprmPIlfo. Therefore there
    was no call to SwWW8ImplReader::Read_POutLvl to set nOutlineLevel.

diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx
index f715359..26a4bc3 100644
--- a/sw/source/filter/ww8/ww8par3.cxx
+++ b/sw/source/filter/ww8/ww8par3.cxx
@@ -1705,6 +1705,8 @@ void SwWW8ImplReader::SetStylesList(sal_uInt16 nStyle, sal_uInt16 nActLFO,
             {
                 rStyleInf.nLFOIndex  = nActLFO;
                 rStyleInf.nListLevel = nActLevel;
+                if (nActLevel > 0) // it must be an outline list
+                    rStyleInf.nOutlineLevel = nActLevel;
 
                 if (
                     (USHRT_MAX > nActLFO) &&


More information about the Libreoffice-commits mailing list