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:
parent
2ab4312961
commit
94037e30f9
1 changed files with 2 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue