summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTroy Rollo <libreoffice@troy.rollo.name>2011-07-24 00:03:57 +1000
committerLuboš Luňák <l.lunak@suse.cz>2011-07-28 17:40:32 +0200
commit04e35708aaa625d180a5bb42591470508c40c522 (patch)
tree8bf25b70f31d618f2e8f85cf5c20544a30a66e80
parente00096e8f8102c2b796337c053983bac336ff05c (diff)
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.
-rw-r--r--sw/source/filter/ww8/ww8par3.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx
index f715359023..26a4bc32c1 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) &&