diff options
author | Armin Le Grand (allotropia) <armin.le.grand.extern@allotropia.de> | 2023-04-20 17:16:32 +0200 |
---|---|---|
committer | Armin Le Grand <Armin.Le.Grand@me.com> | 2023-04-21 15:03:14 +0200 |
commit | dccd82b5ac47f44ea0297d301dc894c70bc793a2 (patch) | |
tree | 71dad46c8e0fbd3b05363978f5554dfc32911276 /sc/source | |
parent | 0293724d05953be608287629ed6178a7c05383a6 (diff) |
MCGR: Reduce diverse GradientStyle enums to single UNO API one
Change-Id: Ie0cd26a308a75ddead9451c53e874a39cc6eeb63
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150705
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/cctrl/tbzoomsliderctrl.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/output.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/cctrl/tbzoomsliderctrl.cxx b/sc/source/ui/cctrl/tbzoomsliderctrl.cxx index 7888e2656207..0168eaf3e93a 100644 --- a/sc/source/ui/cctrl/tbzoomsliderctrl.cxx +++ b/sc/source/ui/cctrl/tbzoomsliderctrl.cxx @@ -404,7 +404,7 @@ void ScZoomSlider::DoPaint(vcl::RenderContext& rRenderContext) Gradient aGradient; aGradient.SetAngle(0_deg10); - aGradient.SetStyle(GradientStyle::Linear); + aGradient.SetStyle(css::awt::GradientStyle_LINEAR); aGradient.SetStartColor(aStartColor); aGradient.SetEndColor(aEndColor); diff --git a/sc/source/ui/view/output.cxx b/sc/source/ui/view/output.cxx index d00f222b0f75..ab5b88062e24 100644 --- a/sc/source/ui/view/output.cxx +++ b/sc/source/ui/view/output.cxx @@ -869,7 +869,7 @@ void drawDataBars(vcl::RenderContext& rRenderContext, const ScDataBarInfo* pOldD if(pOldDataBarInfo->mbGradient) { rRenderContext.SetLineColor(pOldDataBarInfo->maColor); - Gradient aGradient(GradientStyle::Linear, pOldDataBarInfo->maColor, COL_TRANSPARENT); + Gradient aGradient(css::awt::GradientStyle_LINEAR, pOldDataBarInfo->maColor, COL_TRANSPARENT); aGradient.SetSteps(255); if(pOldDataBarInfo->mnLength < 0) |