summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-08-30 08:28:59 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-08-30 11:23:27 +0200
commitbf878dd7c8aabd975f7ba99daba3fa9e959d1d2c (patch)
tree34ddaf84cb9241bcfa7dd00f41a548905861dce8 /svx
parent045e38a1b50050b5df632723da109234bb7031ab (diff)
cid#1618703 Dereference null return value
Change-Id: I9c0dc25565e8c11d3c0b4328a493d5fc746184e6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172630 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sdr/primitive2d/sdrattributecreator.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/svx/source/sdr/primitive2d/sdrattributecreator.cxx b/svx/source/sdr/primitive2d/sdrattributecreator.cxx
index 192e6b080acf..06dabd314649 100644
--- a/svx/source/sdr/primitive2d/sdrattributecreator.cxx
+++ b/svx/source/sdr/primitive2d/sdrattributecreator.cxx
@@ -222,8 +222,9 @@ namespace drawinglayer
// calculate rendering text glow radius from biggest Char size for the full text in shape
double nRadius = 0.0;
- const SvxFontHeightItem& rItem = *rSet.GetItemIfSet(EE_CHAR_FONTHEIGHT);
- sal_uInt32 nFontSize = rItem.GetHeight();
+ sal_uInt32 nFontSize = 0;
+ if (const SvxFontHeightItem* pItem = rSet.GetItemIfSet(EE_CHAR_FONTHEIGHT))
+ nFontSize = pItem->GetHeight();
if (rTextObj.GetOutlinerParaObject())
{