diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-11-22 17:36:38 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-11-22 17:36:38 +0100 |
commit | 5124b6d83ec6e7755fa96315fb522b9e8f05e652 (patch) | |
tree | 483976acef8673853d1f2b2a7098fcdcb21e68cd /canvas/source/tools | |
parent | 4ab63a3aacdaa819fa98957fa017978e768931bd (diff) |
warning C4309: '=' : truncation of constant value
Change-Id: I18bc0505870181fe2c667e3281ed5a90abeac476
Diffstat (limited to 'canvas/source/tools')
-rw-r--r-- | canvas/source/tools/canvastools.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/canvas/source/tools/canvastools.cxx b/canvas/source/tools/canvastools.cxx index 25977f6527a9..751848c7d9f3 100644 --- a/canvas/source/tools/canvastools.cxx +++ b/canvas/source/tools/canvastools.cxx @@ -850,7 +850,7 @@ namespace canvas *pColors++ = vcl::unotools::toByteColor(pIn->Red); *pColors++ = vcl::unotools::toByteColor(pIn->Green); *pColors++ = vcl::unotools::toByteColor(pIn->Blue); - *pColors++ = 255; + *pColors++ = -1; ++pIn; } return aRes; @@ -868,7 +868,7 @@ namespace canvas *pColors++ = vcl::unotools::toByteColor(pIn->Red/pIn->Alpha); *pColors++ = vcl::unotools::toByteColor(pIn->Green/pIn->Alpha); *pColors++ = vcl::unotools::toByteColor(pIn->Blue/pIn->Alpha); - *pColors++ = 255; + *pColors++ = -1; ++pIn; } return aRes; |