summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2010-12-02 15:23:17 +0100
committerRadek Doulik <rodo@novell.com>2010-12-02 15:24:12 +0100
commit62df3b1bd5a17ebe7bbbb1687332363671366ac0 (patch)
treed10d9f4ef9b91c0d988fea518671c3e35d1402a6
parent8c23156321d7710c53e0cce7cf3289257f50292f (diff)
fix invalid read in doubleSequenceToColor, fixes crash in n#654065
-rw-r--r--vcl/source/helper/canvastools.cxx10
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) );
}
//---------------------------------------------------------------------------------------