[Libreoffice-commits] .: writerfilter/source
Miklos Vajna
vmiklos at kemper.freedesktop.org
Mon Jun 18 02:53:56 PDT 2012
writerfilter/source/dmapper/NumberingManager.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 94037e30f9e6b4d8724002a2a7c2a1a96dc94386
Author: Miklos Vajna <vmiklos at suse.cz>
Date: Mon Jun 18 11:45:07 2012 +0200
dmapper: fix crash in ListLevel::SetParaStyle
This can be triggered by using a style in the docx document, then
manually removing that style from styles.xml.
Change-Id: I4aad54d088d9fa56371ff49220316fb14fce6c37
diff --git a/writerfilter/source/dmapper/NumberingManager.cxx b/writerfilter/source/dmapper/NumberingManager.cxx
index 7691410..5b316d5 100644
--- a/writerfilter/source/dmapper/NumberingManager.cxx
+++ b/writerfilter/source/dmapper/NumberingManager.cxx
@@ -136,6 +136,8 @@ void ListLevel::SetValue( Id nId, sal_Int32 nValue )
void ListLevel::SetParaStyle( boost::shared_ptr< StyleSheetEntry > pStyle )
{
+ if (!pStyle)
+ return;
m_pParaStyle = pStyle;
// AFAICT .docx spec does not identify which numberings or paragraph
// styles are actually the ones to be used for outlines (chapter numbering),
More information about the Libreoffice-commits
mailing list