summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-09 10:19:36 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-09 17:14:09 +0200
commitabfaa0e504ef823c9befc90216651522c3fa3a1d (patch)
treead8ee8693306fd119a9ecc680fb48757f2f3d74c /sd
parent59374ea361815b022b1f2a415f995852f23f222e (diff)
cid#1448269 Dereference null return value
Change-Id: I9644d5e3845533fe8117f152c047cc381b3b2c48 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98417 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/drviews7.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/view/drviews7.cxx b/sd/source/ui/view/drviews7.cxx
index 104d6f23801a..9f7dd8d417d3 100644
--- a/sd/source/ui/view/drviews7.cxx
+++ b/sd/source/ui/view/drviews7.cxx
@@ -1712,8 +1712,9 @@ void DrawViewShell::GetPageProperties( SfxItemSet &rSet )
switch (eXFS)
{
case drawing::FillStyle_SOLID:
+ if (const XFillColorItem* pColorItem = rPageAttr.GetItem(XATTR_FILLCOLOR))
{
- Color aColor = rPageAttr.GetItem( XATTR_FILLCOLOR )->GetColorValue();
+ Color aColor = pColorItem->GetColorValue();
XFillColorItem aFillColorItem( OUString(), aColor );
aFillColorItem.SetWhich( SID_ATTR_PAGE_COLOR );
rSet.Put( aFillColorItem );