diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-07 08:29:24 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-07 09:51:42 +0100 |
commit | 82bea50f1ba18a32b175b495b61701a4c148c753 (patch) | |
tree | c66805ac01d02b760805ec5a394c904fda7a65ba /reportdesign/source/ui/dlg/Condition.cxx | |
parent | dbcf5b28aacba55d5f48e58a07fa4d6fc06931b9 (diff) |
use more Color in reportdesign
Change-Id: I9e51bfa6346823863b00bca9c007e28de62aab29
Reviewed-on: https://gerrit.libreoffice.org/50859
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign/source/ui/dlg/Condition.cxx')
-rw-r--r-- | reportdesign/source/ui/dlg/Condition.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/reportdesign/source/ui/dlg/Condition.cxx b/reportdesign/source/ui/dlg/Condition.cxx index 1110e9aef21a..4f147933d6e3 100644 --- a/reportdesign/source/ui/dlg/Condition.cxx +++ b/reportdesign/source/ui/dlg/Condition.cxx @@ -402,9 +402,9 @@ void Condition::updateToolbar(const uno::Reference< report::XReportControlFormat aFont.SetFontHeight(OutputDevice::LogicToLogic(Size(0, aFont.GetFontHeight()), MapMode(MapUnit::MapPoint), MapMode(MapUnit::MapTwip)).Height()); aFont.SetEmphasisMark( static_cast< FontEmphasisMark >( _xReportControlFormat->getControlTextEmphasis() ) ); aFont.SetRelief( static_cast< FontRelief >( _xReportControlFormat->getCharRelief() ) ); - aFont.SetColor( _xReportControlFormat->getCharColor() ); + aFont.SetColor( Color(_xReportControlFormat->getCharColor()) ); m_pPreview->SetFont( aFont, aFont, aFont ); - m_pPreview->SetBackColor( _xReportControlFormat->getControlBackground() ); + m_pPreview->SetBackColor( Color(_xReportControlFormat->getControlBackground()) ); m_pPreview->SetTextLineColor( Color( _xReportControlFormat->getCharUnderlineColor() ) ); } catch( const Exception& ) |