diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-13 09:30:31 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-13 16:54:22 +0100 |
commit | 13763884da02885af67f6c1d230fea6043071764 (patch) | |
tree | 8b18f12d6d159761c32bac368cee2febd71db99a /svx/source/tbxctrls | |
parent | 900d3e33a2bfcb093a96a11a997ecb4a10f28cc0 (diff) |
coverity#1027273 Unchecked return value
Change-Id: I25c6b11fee909559a5f3bac7566fd161851ae14d
Diffstat (limited to 'svx/source/tbxctrls')
-rw-r--r-- | svx/source/tbxctrls/fontworkgallery.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/svx/source/tbxctrls/fontworkgallery.cxx b/svx/source/tbxctrls/fontworkgallery.cxx index 043982559b94..32811637a470 100644 --- a/svx/source/tbxctrls/fontworkgallery.cxx +++ b/svx/source/tbxctrls/fontworkgallery.cxx @@ -118,9 +118,7 @@ void FontWorkGalleryDialog::initFavorites(sal_uInt16 nThemeId) { BitmapEx aThumb; - GalleryExplorer::GetSdrObj(nThemeId, nModelPos, pModel, &aThumb); - - if(!!aThumb) + if (GalleryExplorer::GetSdrObj(nThemeId, nModelPos, pModel, &aThumb) && !!aThumb) { VirtualDevice aVDev; const Point aNull(0, 0); |