summaryrefslogtreecommitdiffstats
path: root/writerfilter
diff options
context:
space:
mode:
authorTroy Rollo <libreoffice@troy.rollo.name>2011-07-23 01:24:04 +1000
committerLuboš Luňák <l.lunak@suse.cz>2011-08-01 16:40:03 +0200
commit295185572f87dc8dad1ae56249ec9b3076a6b799 (patch)
treeae5d66d582443030c02a6aeac06f94b79b00e048 /writerfilter
parentAdd consistent Emacs and vim mode lines (diff)
downloadcore-295185572f87dc8dad1ae56249ec9b3076a6b799.tar.gz
core-295185572f87dc8dad1ae56249ec9b3076a6b799.zip
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@suse.cz>
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/NumberingManager.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/writerfilter/source/dmapper/NumberingManager.cxx b/writerfilter/source/dmapper/NumberingManager.cxx
index 0cab937789a9..029e45d750d2 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