diff options
author | Noel Grandin <noel@peralex.com> | 2016-09-02 10:53:14 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-09-05 08:21:46 +0200 |
commit | 12569802394fb0a9850fcdb0647a0845a803f1ff (patch) | |
tree | 9f5a626852adbf00378fc3dc80475ad896d957f8 /reportdesign | |
parent | 933c0679d64a5585ebfd233180a1a818b493eec5 (diff) |
convert GradientStyle to scoped enum
Change-Id: Ib740da708612df7a5f4b8c82262b9b1bd436604d
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/ui/report/EndMarker.cxx | 2 | ||||
-rw-r--r-- | reportdesign/source/ui/report/StartMarker.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/reportdesign/source/ui/report/EndMarker.cxx b/reportdesign/source/ui/report/EndMarker.cxx index ee75fcec5e6b..fc59eb96d5d5 100644 --- a/reportdesign/source/ui/report/EndMarker.cxx +++ b/reportdesign/source/ui/report/EndMarker.cxx @@ -62,7 +62,7 @@ void OEndMarker::Paint(vcl::RenderContext& rRenderContext, const Rectangle& /*rR aStartColor.RGBtoHSB(nHue, nSat, nBri); nSat += 40; Color aEndColor(Color::HSBtoRGB(nHue, nSat, nBri)); - Gradient aGradient(GradientStyle_LINEAR, aStartColor, aEndColor); + Gradient aGradient(GradientStyle::Linear, aStartColor, aEndColor); aGradient.SetSteps(static_cast<sal_uInt16>(aSize.Height())); rRenderContext.DrawGradient(PixelToLogic(aPoly), aGradient); diff --git a/reportdesign/source/ui/report/StartMarker.cxx b/reportdesign/source/ui/report/StartMarker.cxx index 70b134e74413..7bbf48877a58 100644 --- a/reportdesign/source/ui/report/StartMarker.cxx +++ b/reportdesign/source/ui/report/StartMarker.cxx @@ -134,7 +134,7 @@ void OStartMarker::Paint(vcl::RenderContext& rRenderContext, const Rectangle& /* aStartColor.RGBtoHSB(nHue, nSat, nBri); nSat += 40; Color aEndColor(Color::HSBtoRGB(nHue, nSat, nBri)); - Gradient aGradient(GradientStyle_LINEAR,aStartColor,aEndColor); + Gradient aGradient(GradientStyle::Linear,aStartColor,aEndColor); aGradient.SetSteps(static_cast<sal_uInt16>(aSize.Height())); rRenderContext.DrawGradient(PixelToLogic(aPoly) ,aGradient); |