diff options
Diffstat (limited to 'svx/source/unodraw/unoctabl.cxx')
-rw-r--r-- | svx/source/unodraw/unoctabl.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/unodraw/unoctabl.cxx b/svx/source/unodraw/unoctabl.cxx index 677809a5b39e..267726fe93c5 100644 --- a/svx/source/unodraw/unoctabl.cxx +++ b/svx/source/unodraw/unoctabl.cxx @@ -92,13 +92,13 @@ void SAL_CALL SvxUnoColorTable::insertByName( const OUString& aName, const uno:: if( hasByName( aName ) ) throw container::ElementExistException(); - sal_Int32 nColor = 0; - if( !(aElement >>= nColor) ) + Color aColor; + if( !(aElement >>= aColor) ) throw lang::IllegalArgumentException(); if( pList.is() ) { - pList->Insert(o3tl::make_unique<XColorEntry>(Color(static_cast<ColorData>(nColor)), aName)); + pList->Insert(o3tl::make_unique<XColorEntry>(aColor, aName)); } } @@ -122,7 +122,7 @@ void SAL_CALL SvxUnoColorTable::replaceByName( const OUString& aName, const uno: if( nIndex == -1 ) throw container::NoSuchElementException(); - pList->Replace(nIndex, o3tl::make_unique<XColorEntry>(Color(static_cast<ColorData>(nColor)), aName )); + pList->Replace(nIndex, o3tl::make_unique<XColorEntry>(Color(static_cast<Color>(nColor)), aName )); } // XNameAccess |