[Libreoffice-commits] core.git: writerfilter/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Sun Feb 16 17:09:57 UTC 2020
writerfilter/source/dmapper/StyleSheetTable.cxx | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
New commits:
commit ee51edf70e7f64d4d42aeb2ac0470da306bd875f
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Feb 16 15:36:32 2020 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Feb 16 18:09:24 2020 +0100
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 at redhat.com>
diff --git a/writerfilter/source/dmapper/StyleSheetTable.cxx b/writerfilter/source/dmapper/StyleSheetTable.cxx
index b3348099cfaf..918ef8ad6e46 100644
--- a/writerfilter/source/dmapper/StyleSheetTable.cxx
+++ b/writerfilter/source/dmapper/StyleSheetTable.cxx
@@ -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;
}
}
More information about the Libreoffice-commits
mailing list