vcl/source/outdev/font.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
New commits: commit 24ec38a96fa33b75435786caaca04f9cef86c289 Author: Chris Sherlock <chris.sherloc...@gmail.com> Date: Thu May 1 20:13:39 2014 +1000 coverity#1209003: Unchecked return value When AcquireGraphics() is true, then it means that we got the graphics context. Change-Id: Id5f4a5fc4456f6ce649fdf3ee63ff6103ba65233 diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx index bba7c61..e9ae02e 100644 --- a/vcl/source/outdev/font.cxx +++ b/vcl/source/outdev/font.cxx @@ -292,8 +292,11 @@ SystemFontData OutputDevice::GetSysFontData(int nFallbacklevel) const SystemFontData aSysFontData; aSysFontData.nSize = sizeof(aSysFontData); - if (!mpGraphics) AcquireGraphics(); - if (mpGraphics) aSysFontData = mpGraphics->GetSysFontData(nFallbacklevel); + if (!mpGraphics) + { + if (AcquireGraphics()) + aSysFontData = mpGraphics->GetSysFontData(nFallbacklevel); + } return aSysFontData; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits