diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-05-12 00:23:32 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-05-12 06:51:12 +0200 |
commit | 11eb3330ea72d994ab2b901a45a3417432364972 (patch) | |
tree | bd59de32521158c2c534f8ebabc54194674a5fba /vcl | |
parent | 28c9d9898064af9269526064cdb90b6c3427c72a (diff) |
fdo#78567: Revert "coverity#1209003: Unchecked return value"
This reverts commit 24ec38a96fa33b75435786caaca04f9cef86c289.
The commit has unfortunately caused a regression, reverting it.
Change-Id: If3098d4fce05b3bf95e3ffe021ff4f35e1cc42fc
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/outdev/font.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx index 78f82043b4df..7a3431749fd7 100644 --- a/vcl/source/outdev/font.cxx +++ b/vcl/source/outdev/font.cxx @@ -292,11 +292,8 @@ SystemFontData OutputDevice::GetSysFontData(int nFallbacklevel) const SystemFontData aSysFontData; aSysFontData.nSize = sizeof(aSysFontData); - if (!mpGraphics) - { - if (AcquireGraphics()) - aSysFontData = mpGraphics->GetSysFontData(nFallbacklevel); - } + if (!mpGraphics) AcquireGraphics(); + if (mpGraphics) aSysFontData = mpGraphics->GetSysFontData(nFallbacklevel); return aSysFontData; } |