diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-01-16 19:26:04 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-01-17 09:45:34 +0100 |
commit | 14d61304c3f54e59cb8912fbd76fec2e4171e478 (patch) | |
tree | d5e04f98f7e6dbd5117724d6fa15275b2cfb98eb /xmloff | |
parent | d2baba68d32fa93e758dcc9c9a890206065ea9ac (diff) |
use ::Color in ColorPropertySet constructor
Change-Id: I5649b39999de50d9f1fc33e2aef405be43069096
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109451
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/chart/ColorPropertySet.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/chart/ColorPropertySet.hxx | 2 | ||||
-rw-r--r-- | xmloff/source/chart/SchXMLExport.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/chart/ColorPropertySet.cxx b/xmloff/source/chart/ColorPropertySet.cxx index 6e3e046923df..84313c0bb49f 100644 --- a/xmloff/source/chart/ColorPropertySet.cxx +++ b/xmloff/source/chart/ColorPropertySet.cxx @@ -76,8 +76,8 @@ sal_Bool SAL_CALL lcl_ColorPropertySetInfo::hasPropertyByName( const OUString& N namespace xmloff::chart { -ColorPropertySet::ColorPropertySet( sal_Int32 nColor ) : - m_nColor( ColorTransparency, nColor ), +ColorPropertySet::ColorPropertySet( ::Color nColor ) : + m_nColor( nColor ), m_nDefaultColor( 0x0099ccff ) // blue 8 {} diff --git a/xmloff/source/chart/ColorPropertySet.hxx b/xmloff/source/chart/ColorPropertySet.hxx index a69d326548bd..d5b42e39d58c 100644 --- a/xmloff/source/chart/ColorPropertySet.hxx +++ b/xmloff/source/chart/ColorPropertySet.hxx @@ -33,7 +33,7 @@ class ColorPropertySet : public ::cppu::WeakImplHelper< css::beans::XPropertyState > { public: - explicit ColorPropertySet( sal_Int32 nColor ); + explicit ColorPropertySet( ::Color nColor ); virtual ~ColorPropertySet() override; protected: diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx index 0ae039da9a3e..9c99ac16167c 100644 --- a/xmloff/source/chart/SchXMLExport.cxx +++ b/xmloff/source/chart/SchXMLExport.cxx @@ -3392,7 +3392,7 @@ void SchXMLExportHelper_Impl::exportDataPoints( { // property set only containing the color xPropSet.set( new ::xmloff::chart::ColorPropertySet( - xColorScheme->getColorByIndex( nElement ))); + ::Color(ColorTransparency, xColorScheme->getColorByIndex( nElement )))); } SAL_WARN_IF( !xPropSet.is(), "xmloff.chart", "Pie Segments should have properties" ); if( xPropSet.is()) |