[Libreoffice-commits] .: canvas/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Nov 22 08:37:04 PST 2012


 canvas/source/tools/canvastools.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 5124b6d83ec6e7755fa96315fb522b9e8f05e652
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Nov 22 17:36:38 2012 +0100

    warning C4309: '=' : truncation of constant value
    
    Change-Id: I18bc0505870181fe2c667e3281ed5a90abeac476

diff --git a/canvas/source/tools/canvastools.cxx b/canvas/source/tools/canvastools.cxx
index 25977f6..751848c 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;


More information about the Libreoffice-commits mailing list