[Libreoffice-commits] .: Branch 'libreoffice-3-3' - vcl/source

Thorsten Behrens thorsten at kemper.freedesktop.org
Thu Dec 2 13:21:58 PST 2010


 vcl/source/helper/canvastools.cxx |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 51c1386285632f188a2f875f71606f2730990b84
Author: Radek Doulik <rodo at novell.com>
Date:   Thu Dec 2 22:20:24 2010 +0100

    fix invalid read in doubleSequenceToColor, fixes crash in n#654065
    
    Signed-off-by: Thorsten Behrens <tbehrens at novell.com>

diff --git a/vcl/source/helper/canvastools.cxx b/vcl/source/helper/canvastools.cxx
index 9f701c5..d57c9f4 100644
--- a/vcl/source/helper/canvastools.cxx
+++ b/vcl/source/helper/canvastools.cxx
@@ -820,13 +820,13 @@ namespace vcl
             const uno::Sequence< double >                   rColor,
             const uno::Reference< rendering::XColorSpace >& xColorSpace )
         {
-            const rendering::ARGBColor& rARGBColor(
+            const rendering::ARGBColor aARGBColor(
                 xColorSpace->convertToARGB(rColor)[0]);
 
-            return Color( 255-toByteColor(rARGBColor.Alpha),
-                          toByteColor(rARGBColor.Red),
-                          toByteColor(rARGBColor.Green),
-                          toByteColor(rARGBColor.Blue) );
+            return Color( 255-toByteColor(aARGBColor.Alpha),
+                          toByteColor(aARGBColor.Red),
+                          toByteColor(aARGBColor.Green),
+                          toByteColor(aARGBColor.Blue) );
         }
 
         //---------------------------------------------------------------------------------------


More information about the Libreoffice-commits mailing list