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 /canvas | |
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 'canvas')
-rw-r--r-- | canvas/source/vcl/canvashelper_texturefill.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/canvas/source/vcl/canvashelper_texturefill.cxx b/canvas/source/vcl/canvashelper_texturefill.cxx index 211592685204..1582a3ad7601 100644 --- a/canvas/source/vcl/canvashelper_texturefill.cxx +++ b/canvas/source/vcl/canvashelper_texturefill.cxx @@ -160,7 +160,7 @@ namespace vclcanvas aLeftBottom -= 2.0*nDiagonalLength*aDirection; aRightTop += 2.0*nDiagonalLength*aDirection; aRightBottom += 2.0*nDiagonalLength*aDirection; - Gradient vclGradient( GradientStyle::Linear, rColors[ 0 ], rColors[ 1 ] ); + Gradient vclGradient( css::awt::GradientStyle_LINEAR, rColors[ 0 ], rColors[ 1 ] ); ::tools::Polygon aTempPoly( static_cast<sal_uInt16>(5) ); aTempPoly[0] = ::Point( ::basegfx::fround( aLeftTop.getX() ), ::basegfx::fround( aLeftTop.getY() ) ); @@ -185,7 +185,7 @@ namespace vclcanvas aLeftBottom -= 2.0*nDiagonalLength*aDirection; aRightTop += 2.0*nDiagonalLength*aDirection; aRightBottom += 2.0*nDiagonalLength*aDirection; - Gradient vclGradient( GradientStyle::Axial, rColors[ 1 ], rColors[ 0 ] ); + Gradient vclGradient( css::awt::GradientStyle_AXIAL, rColors[ 1 ], rColors[ 0 ] ); ::tools::Polygon aTempPoly( static_cast<sal_uInt16>(5) ); aTempPoly[0] = ::Point( ::basegfx::fround( aLeftTop.getX() ), ::basegfx::fround( aLeftTop.getY() ) ); |