summaryrefslogtreecommitdiffstats
path: root/svx/source/gallery2/galmisc.cxx
diff options
context:
space:
mode:
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;
}