1 diff --git a/canvas/source/cairo/cairo_canvashelper.cxx b/canvas/source/cairo/cairo_canvashelper.cxx
2 index 3b3571a..15245f4 100644
3 --- canvas/source/cairo/cairo_canvashelper.cxx
4 +++ canvas/source/cairo/cairo_canvashelper.cxx
5 @@ -1640,12 +1640,12 @@ namespace cairocanvas
6 rendering::RGBColor* pOut( aRes.getArray() );
7 for( sal_Size i=0; i<nLen; i+=4 )
9 - const sal_Int8 nAlpha(pIn[3]);
11 + const double fAlpha((sal_uInt8)pIn[3]);
13 *pOut++ = rendering::RGBColor(
14 - vcl::unotools::toDoubleColor(pIn[2]/nAlpha),
15 - vcl::unotools::toDoubleColor(pIn[1]/nAlpha),
16 - vcl::unotools::toDoubleColor(pIn[0]/nAlpha));
21 *pOut++ = rendering::RGBColor(0,0,0);
23 @@ -1665,13 +1665,13 @@ namespace cairocanvas
24 rendering::ARGBColor* pOut( aRes.getArray() );
25 for( sal_Size i=0; i<nLen; i+=4 )
27 - const sal_Int8 nAlpha(pIn[3]);
29 + const double fAlpha((sal_uInt8)pIn[3]);
31 *pOut++ = rendering::ARGBColor(
32 - vcl::unotools::toDoubleColor(nAlpha),
33 - vcl::unotools::toDoubleColor(pIn[2]/nAlpha),
34 - vcl::unotools::toDoubleColor(pIn[1]/nAlpha),
35 - vcl::unotools::toDoubleColor(pIn[0]/nAlpha));
41 *pOut++ = rendering::ARGBColor(0,0,0,0);