diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2021-12-18 23:39:25 +1100 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2022-01-05 05:42:32 +0100 |
commit | 22f52db0be81ceec2aa7a61f7092b54f36e2d00c (patch) | |
tree | f1f2a02824321d53f949146a480db12186ca45ee /cppcanvas/source/mtfrenderer | |
parent | 88d8c9af7140ec25dfbcd9323b870a2da7b6f7e0 (diff) |
vcl: migrate AddGradientActions() from OutputDevice to Gradient
Change-Id: I815fb3ce366c93b81f60d19eeed906dc7288708a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127030
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'cppcanvas/source/mtfrenderer')
-rw-r--r-- | cppcanvas/source/mtfrenderer/implrenderer.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx index 8aa1d1675fa9..f7fe8db551f0 100644 --- a/cppcanvas/source/mtfrenderer/implrenderer.cxx +++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx @@ -720,9 +720,8 @@ namespace cppcanvas::internal } GDIMetaFile aTmpMtf; - rParms.mrVDev.AddGradientActions( rPoly.GetBoundRect(), - rGradient, - aTmpMtf ); + Gradient aGradient(rGradient); + aGradient.AddGradientActions( rPoly.GetBoundRect(), aTmpMtf ); createActions( aTmpMtf, rParms, bSubsettableActions ); |