diff options
author | Radek Doulik <rodo@novell.com> | 2010-12-02 22:20:24 +0100 |
---|---|---|
committer | Thorsten Behrens <tbehrens@novell.com> | 2010-12-02 22:21:36 +0100 |
commit | 47b589156c55d1c0ee52f72d95a7f7ea53fd1483 (patch) | |
tree | 43d7d87a036ca6a4988ed8476fff0426fd582aaa /vcl | |
parent | 1c9811a2465d51d2cfe8e58d5d82051c11cab201 (diff) |
fix invalid read in doubleSequenceToColor, fixes crash in n#654065
Signed-off-by: Thorsten Behrens <tbehrens@novell.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/helper/canvastools.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/helper/canvastools.cxx b/vcl/source/helper/canvastools.cxx index 7dd9c10e3da7..aa667a3f6492 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) ); } //--------------------------------------------------------------------------------------- |