cid#1458432 Null pointer dereferences
Change-Id: I09afa3504312ba25c2d4b2292e818bc7648b07c1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88812 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
@@ -1071,11 +1071,11 @@ void StyleSheetTable::ApplyStyleSheets( const FontTablePtr& rFontTable )
|
||||
{
|
||||
if (aSheetProps->sStyleIdentifierD == sBaseId)
|
||||
{
|
||||
StyleSheetPropertyMap* aStyleSheetProps
|
||||
= dynamic_cast<StyleSheetPropertyMap*>(aSheetProps->pProperties.get());
|
||||
pStyleSheetProperties->SetListLevel(aStyleSheetProps->GetListLevel());
|
||||
pStyleSheetProperties->SetOutlineLevel(aStyleSheetProps->GetOutlineLevel());
|
||||
pStyleSheetProperties->SetNumId(aStyleSheetProps->GetNumId());
|
||||
StyleSheetPropertyMap& rStyleSheetProps
|
||||
= dynamic_cast<StyleSheetPropertyMap&>(*aSheetProps->pProperties);
|
||||
pStyleSheetProperties->SetListLevel(rStyleSheetProps.GetListLevel());
|
||||
pStyleSheetProperties->SetOutlineLevel(rStyleSheetProps.GetOutlineLevel());
|
||||
pStyleSheetProperties->SetNumId(rStyleSheetProps.GetNumId());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user