[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - writerfilter/qa writerfilter/source
Miklos Vajna
vmiklos at suse.cz
Mon Jun 10 01:08:59 PDT 2013
writerfilter/qa/cppunittests/rtftok/data/pass/fdo64656.rtf | 10 ++++++++++
writerfilter/source/rtftok/rtfdocumentimpl.cxx | 1 +
2 files changed, 11 insertions(+)
New commits:
commit 0cdb92107647d1e1571675b21d421d618ad90c35
Author: Miklos Vajna <vmiklos at suse.cz>
Date: Mon Jun 10 09:43:01 2013 +0200
fdo#64656 RTF import: handle levelnumbers without leveltext
Change-Id: I34ce7b172dc94489f7f506796e66b14598aab19c
(cherry picked from commit 2c64af529567324f4433984ed7673304d26062c8)
diff --git a/writerfilter/qa/cppunittests/rtftok/data/pass/fdo64656.rtf b/writerfilter/qa/cppunittests/rtftok/data/pass/fdo64656.rtf
new file mode 100644
index 0000000..1c815c4
--- /dev/null
+++ b/writerfilter/qa/cppunittests/rtftok/data/pass/fdo64656.rtf
@@ -0,0 +1,10 @@
+{\rtf
+{\*\listtable
+{\list \listtemplateid3794224 \listhybrid
+{\listlevel \levelnfc0 \levelnfcn0 \leveljc0 \leveljcn0 \levelstartat1 \levelfollow0 \levelspace0 \levelindent0 \levellegal0 \levelnorestart0
+{\levelnumbers ;}
+}
+{\listname ;}
+\listid258183 }
+}
+}
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index fcd0ef5..5c44b25 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -3839,6 +3839,7 @@ int RTFDocumentImpl::popState()
}
break;
case DESTINATION_LEVELNUMBERS:
+ if (aState.aTableSprms.find(NS_ooxml::LN_CT_Lvl_lvlText))
{
RTFSprms& rAttributes = aState.aTableSprms.find(NS_ooxml::LN_CT_Lvl_lvlText)->getAttributes();
RTFValue::Pointer_t pValue = rAttributes.find(NS_ooxml::LN_CT_LevelText_val);
More information about the Libreoffice-commits
mailing list