diff options
Diffstat (limited to 'svtools/source/contnr/ivctrl.cxx')
-rw-r--r-- | svtools/source/contnr/ivctrl.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svtools/source/contnr/ivctrl.cxx b/svtools/source/contnr/ivctrl.cxx index 16dfe2749f72..796579b0a838 100644 --- a/svtools/source/contnr/ivctrl.cxx +++ b/svtools/source/contnr/ivctrl.cxx @@ -349,8 +349,7 @@ void SvtIconChoiceCtrl::SetBackground( const Wallpaper& rPaper ) WallpaperStyle eStyle = aBackground.GetStyle(); Color aBack( aBackground.GetColor()); - Color aTrans( COL_TRANSPARENT ); - if( aBack == aTrans && + if( aBack == COL_TRANSPARENT && (!aBackground.IsBitmap() || aBackground.GetBitmap().IsTransparent() || (eStyle != WallpaperStyle::Tile && eStyle != WallpaperStyle::Scale)) ) |