diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-20 15:22:05 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-21 06:05:41 +0100 |
commit | 72593849bb644684a8c00f70a3f18bcfabca737f (patch) | |
tree | 6325d6a52bce0f0539dde6fee53aa7fd792e8eb2 /svx/source/unodraw/XPropertyTable.cxx | |
parent | bcb1e01c32e09d9abeb91b73303f2eb6b3b5abfe (diff) |
ColorData->Color in sd..svx
Change-Id: I70de56b6bfb1ea4655ec03510fad92bf6645f64e
Reviewed-on: https://gerrit.libreoffice.org/50046
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/unodraw/XPropertyTable.cxx')
-rw-r--r-- | svx/source/unodraw/XPropertyTable.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/svx/source/unodraw/XPropertyTable.cxx b/svx/source/unodraw/XPropertyTable.cxx index 1765cee285ab..86e530a3eca6 100644 --- a/svx/source/unodraw/XPropertyTable.cxx +++ b/svx/source/unodraw/XPropertyTable.cxx @@ -262,11 +262,10 @@ uno::Any SvxUnoXColorTable::getAny( const XPropertyEntry* pEntry ) const throw() std::unique_ptr<XPropertyEntry> SvxUnoXColorTable::createEntry(const OUString& rName, const uno::Any& rAny) const { - sal_Int32 nColor = 0; - if( !(rAny >>= nColor) ) + Color aColor; + if( !(rAny >>= aColor) ) return std::unique_ptr<XPropertyEntry>(); - const Color aColor( static_cast<ColorData>(nColor) ); return o3tl::make_unique<XColorEntry>(aColor, rName); } |