diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-10-08 16:39:02 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-11-06 11:58:12 +0000 |
commit | 138322482296aca2aa20399dbb42afe2effee21d (patch) | |
tree | 77ec9f01b3fc2c31584e0c09eb074e5265cd64d1 /cppcanvas | |
parent | deaa86b263e47965eeb67ebb179023bdf5ba82c2 (diff) |
Revert "calc65: #i116318# Fixed the painting of axial gradients."
This reverts commit de2dd7a15678d2968cd7c22d74e7056c35a051f3.
Diffstat (limited to 'cppcanvas')
-rw-r--r-- | cppcanvas/source/mtfrenderer/implrenderer.cxx | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx index 298be374b669..05ba6852e427 100644 --- a/cppcanvas/source/mtfrenderer/implrenderer.cxx +++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx @@ -685,23 +685,10 @@ namespace cppcanvas case GradientStyle_AXIAL: { - // Adapt the border so that it is suitable - // for the axial gradient. An axial - // gradient consists of two linear - // gradients. Each of those covers half - // of the total size. In order to - // compensate for the condensed display of - // the linear gradients, we have to - // enlarge the area taken up by the actual - // gradient (1-fBorder). After that we - // have to turn the result back into a - // border value, hence the second (left - // most 1-... - const double fAxialBorder (1-2*(1-fBorder)); - basegfx::tools::createAxialODFGradientInfo(aGradInfo, + basegfx::tools::createLinearODFGradientInfo(aGradInfo, aBounds, nSteps, - fAxialBorder, + fBorder, fRotation); // map odf to svg gradient orientation - x // instead of y direction |