summaryrefslogtreecommitdiff
path: root/svx/source/gallery2/galmisc.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-04-26 15:55:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-04-27 10:50:48 +0200
commitdd1df645b4fe0d33c640a12d1596f75bd68eb928 (patch)
treed60eaa16c4870e8eac607c054bd8c70b226e6d65 /svx/source/gallery2/galmisc.cxx
parentf9f045e7830d184497554e0e438cc478fa990eb6 (diff)
remove svx bitmaps from .src files
Change-Id: Ie3795870484648e62dea483f9976af31cd1be167 Reviewed-on: https://gerrit.libreoffice.org/37006 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source/gallery2/galmisc.cxx')
-rw-r--r--svx/source/gallery2/galmisc.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/svx/source/gallery2/galmisc.cxx b/svx/source/gallery2/galmisc.cxx
index 5ad2f181f822..b06ff79c1dc0 100644
--- a/svx/source/gallery2/galmisc.cxx
+++ b/svx/source/gallery2/galmisc.cxx
@@ -66,12 +66,13 @@ ResMgr* GetGalleryResMgr()
return pGalleryResMgr;
}
-BitmapEx GalleryResGetBitmapEx( sal_uInt32 nId )
+BitmapEx GalleryResGetBitmapEx(const OUString &rId)
{
- BitmapEx aBmpEx( GAL_RES( nId ) );
+ BitmapEx aBmpEx(rId);
- if( !aBmpEx.IsTransparent() )
- aBmpEx = BitmapEx( aBmpEx.GetBitmap(), COL_LIGHTMAGENTA );
+ //TODO, check if any of these have no transparency layer
+ if (!aBmpEx.IsTransparent())
+ aBmpEx = BitmapEx(aBmpEx.GetBitmap(), COL_LIGHTMAGENTA);
return aBmpEx;
}