diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-06 10:34:00 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-06 11:50:16 +0100 |
commit | f02b1ba18deeab9744c5fe25162f5853d69b438e (patch) | |
tree | d770d9dd6fb7a52e125ce221987bfba12c70ce15 /xmloff/source/style/shadwhdl.cxx | |
parent | d15ff312ad80e4d1f210636e3374a81c14c229a2 (diff) |
use more Color in xmloff
Change-Id: Iec12d2e9f3e254dc6525dc285259321b13f75c4a
Reviewed-on: https://gerrit.libreoffice.org/50794
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/style/shadwhdl.cxx')
-rw-r--r-- | xmloff/source/style/shadwhdl.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/xmloff/source/style/shadwhdl.cxx b/xmloff/source/style/shadwhdl.cxx index bccfab9e017d..b3c2739aa1db 100644 --- a/xmloff/source/style/shadwhdl.cxx +++ b/xmloff/source/style/shadwhdl.cxx @@ -63,12 +63,9 @@ bool XMLShadowPropHdl::importXML( const OUString& rStrImpValue, uno::Any& rValue } else if( !bColorFound && aToken.startsWith("#") ) { - sal_Int32 nColor(0); - bRet = ::sax::Converter::convertColor( nColor, aToken ); + bRet = ::sax::Converter::convertColor( aColor, aToken ); if( !bRet ) return false; - - aColor = nColor; bColorFound = true; } else if( !bOffsetFound ) @@ -112,7 +109,7 @@ bool XMLShadowPropHdl::importXML( const OUString& rStrImpValue, uno::Any& rValue if( bRet && ( bColorFound || bOffsetFound ) ) { aShadow.IsTransparent = aColor.GetTransparency() > 0; - aShadow.Color = aColor.GetColor(); + aShadow.Color = sal_Int32(aColor); bRet = true; } |