From 5124b6d83ec6e7755fa96315fb522b9e8f05e652 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 22 Nov 2012 17:36:38 +0100 Subject: warning C4309: '=' : truncation of constant value Change-Id: I18bc0505870181fe2c667e3281ed5a90abeac476 --- canvas/source/tools/canvastools.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'canvas/source/tools') 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; -- cgit