summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-07 08:47:15 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-07 12:29:32 +0100
commitbfbae5ddd52cf80af94b250b9de349f0340dbe34 (patch)
tree241a626ed7734ccb51e2ac71dbcc7eb0c6677484 /vcl
parent49d88e99a20f0c746beddc713c03289d5c64546a (diff)
cid#1558798 Unchecked return value
Change-Id: Iddb702f40ced018c104a8a42847bc396ba258ff8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160420 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/outdev/font.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx
index 0e37c7613ded..2086db7f6341 100644
--- a/vcl/source/outdev/font.cxx
+++ b/vcl/source/outdev/font.cxx
@@ -1024,11 +1024,13 @@ bool OutputDevice::ForceFallbackFont(vcl::Font const& rFallbackFont)
{
vcl::Font aOldFont = GetFont();
SetFont(rFallbackFont);
- InitFont();
+ if (!InitFont())
+ return false;
mpForcedFallbackInstance = mpFontInstance;
SetFont(aOldFont);
- InitFont();
+ if (!InitFont())
+ return false;
if (mpForcedFallbackInstance)
return true;