diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-01 15:38:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-02 10:01:16 +0100 |
commit | 06ed7cd89b8cbbdfd64b474a5c0555a1047a96db (patch) | |
tree | 8cc6e26f60ef1ddfc0bb7efc08221604d33acba2 /svx | |
parent | 7e80b63d8304d435d305ea61988eaf6cf9667886 (diff) |
use more Color in HexColorControl
Change-Id: I889fa9f2a8711e95f24336718e35d11d0945dec1
Reviewed-on: https://gerrit.libreoffice.org/50573
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/hexcolorcontrol.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/dialog/hexcolorcontrol.cxx b/svx/source/dialog/hexcolorcontrol.cxx index 884340980708..69032b1551fe 100644 --- a/svx/source/dialog/hexcolorcontrol.cxx +++ b/svx/source/dialog/hexcolorcontrol.cxx @@ -27,14 +27,14 @@ HexColorControl::HexColorControl( vcl::Window* pParent, WinBits nStyle ) VCL_BUILDER_FACTORY_ARGS(HexColorControl, WB_BORDER) -void HexColorControl::SetColor(sal_Int32 nColor) +void HexColorControl::SetColor(Color nColor) { OUStringBuffer aBuffer; - sax::Converter::convertColor(aBuffer, nColor); + sax::Converter::convertColor(aBuffer, sal_Int32(nColor)); SetText(aBuffer.makeStringAndClear().copy(1)); } -sal_Int32 HexColorControl::GetColor() +Color HexColorControl::GetColor() { sal_Int32 nColor = -1; @@ -55,7 +55,7 @@ sal_Int32 HexColorControl::GetColor() else SetControlBackground(); - return nColor; + return Color(nColor); } bool HexColorControl::PreNotify( NotifyEvent& rNEvt ) |