diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-06 11:11:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-06 12:52:32 +0100 |
commit | 4a0ca3a2ec5290419617b6dace216e981b03254e (patch) | |
tree | 464ac48c91ac5610436f7c50790ed9b08d912405 /svx/source/fmcomp/fmgridif.cxx | |
parent | b8b7f8a8f8d97088181d287bb75e74facece16c6 (diff) |
use more Color in svx
Change-Id: I78ea8db0d9c882cdc3813ff4fac0cdce9caf6ad1
Reviewed-on: https://gerrit.libreoffice.org/50801
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/fmcomp/fmgridif.cxx')
-rw-r--r-- | svx/source/fmcomp/fmgridif.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/fmcomp/fmgridif.cxx b/svx/source/fmcomp/fmgridif.cxx index 96200e7776cd..742db63c6cff 100644 --- a/svx/source/fmcomp/fmgridif.cxx +++ b/svx/source/fmcomp/fmgridif.cxx @@ -1821,7 +1821,7 @@ void FmXGridPeer::setProperty( const OUString& PropertyName, const Any& Value) if ( PropertyName == FM_PROP_TEXTLINECOLOR ) { - ::Color aTextLineColor( bVoid ? COL_TRANSPARENT : ::comphelper::getINT32( Value ) ); + ::Color aTextLineColor( bVoid ? COL_TRANSPARENT : ::Color(::comphelper::getINT32( Value )) ); if (bVoid) { pGrid->SetTextLineColor(); @@ -2038,11 +2038,11 @@ Any FmXGridPeer::getProperty( const OUString& _rPropertyName ) } else if ( _rPropertyName == FM_PROP_TEXTCOLOR ) { - aProp <<= static_cast<sal_Int32>(pDataWindow->GetControlForeground().GetColor()); + aProp <<= pDataWindow->GetControlForeground(); } else if ( _rPropertyName == FM_PROP_BACKGROUNDCOLOR ) { - aProp <<= static_cast<sal_Int32>(pDataWindow->GetControlBackground().GetColor()); + aProp <<= pDataWindow->GetControlBackground(); } else if ( _rPropertyName == FM_PROP_ROWHEIGHT ) { |