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
This commit is contained in:
Miklos Vajna 2012-06-18 11:45:07 +02:00
parent 2ab4312961
commit 94037e30f9

View file

@ -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),