diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-08 11:00:00 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-08 12:49:53 +0200 |
commit | d342cad2749ca68b1f72bf318fbd403adb7a758f (patch) | |
tree | ea91d937a17fe235318d089baef775006b377497 /svx/source | |
parent | 77e260f915e0c77ddb1e915e9fd27ab0bdccc763 (diff) |
use BitmapEx in EnhancedCustomShape2d::AdaptObjColor
instead of Bitmap
Change-Id: Ibcdef2a076f29590f1a8a43f90b1cec95e75d413
Reviewed-on: https://gerrit.libreoffice.org/75199
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/customshapes/EnhancedCustomShape2d.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShape2d.cxx b/svx/source/customshapes/EnhancedCustomShape2d.cxx index 22eb1cba2c53..b2effd4649f5 100644 --- a/svx/source/customshapes/EnhancedCustomShape2d.cxx +++ b/svx/source/customshapes/EnhancedCustomShape2d.cxx @@ -2793,11 +2793,11 @@ void EnhancedCustomShape2d::AdaptObjColor( { if ( nColorCount || 0.0 != dBrightness ) { - Bitmap aBitmap(rObj.GetMergedItem(XATTR_FILLBITMAP).GetGraphicObject().GetGraphic().GetBitmapEx().GetBitmap()); + BitmapEx aBitmap(rObj.GetMergedItem(XATTR_FILLBITMAP).GetGraphicObject().GetGraphic().GetBitmapEx()); - aBitmap.Adjust( - static_cast< short > ( GetLuminanceChange( - std::min(nColorIndex, nColorCount-1)))); + short nLuminancePercent = static_cast< short > ( GetLuminanceChange( + std::min(nColorIndex, nColorCount-1))); + aBitmap.Adjust( nLuminancePercent, 0, 0, 0, 0 ); rObj.SetMergedItem(XFillBitmapItem(OUString(), Graphic(aBitmap))); } |