diff options
author | Herbert Dürr <hdu@apache.org> | 2012-10-19 15:12:40 +0000 |
---|---|---|
committer | Herbert Dürr <hdu@apache.org> | 2012-10-19 15:12:40 +0000 |
commit | 2d9d5c8d6beb7fb0a7dafa0c1c4d10a25d7200fd (patch) | |
tree | 15a68700c164567baace3aa5dc175aa588ed9134 /sd/source | |
parent | b0a48fbbaa2d3d530743672186618a468cce694a (diff) |
make conversions between BitmapColor and sal_uInt8 explicit
Implicit conversions are a dangerous cause of confusion as seen
in http://markmail.org/thread/a4copx2di7cxeowg and require tricky
rewrites to work around them, this change cleans them up and
disables them for all code outside of the immutable binfilter.
Notes
Notes:
merged as: 78eca44c4db67848a85b600cc40e25d41bb647df
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/slidesorter/view/SlsButtonBar.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/slidesorter/view/SlsButtonBar.cxx b/sd/source/ui/slidesorter/view/SlsButtonBar.cxx index d6f71505c345..ff088bf4675a 100644 --- a/sd/source/ui/slidesorter/view/SlsButtonBar.cxx +++ b/sd/source/ui/slidesorter/view/SlsButtonBar.cxx @@ -158,7 +158,7 @@ namespace { static_cast<sal_Int32>(nValue * (1-nAlpha)), 0, 255)); - pBitmap->SetPixel(nY, nX, 255-sal_uInt8(nNewValue)); + pBitmap->SetPixelIndex(nY, nX, static_cast<sal_uInt8>(255-nNewValue)); } } } |