diff options
author | Vladimir Glazunov <vg@openoffice.org> | 2011-01-25 09:58:16 +0100 |
---|---|---|
committer | Vladimir Glazunov <vg@openoffice.org> | 2011-01-25 09:58:16 +0100 |
commit | 265d5f188ebdf230581ba9ef2ad5c6b13f927f19 (patch) | |
tree | 4efa77a46a9b6789ebaae14bd9a8223826eb76af /cppcanvas | |
parent | ffd600e777970df0908125da66b280e1b00dbec9 (diff) | |
parent | 58dd2972281eb79ae59a7707cadf6388a8190531 (diff) |
#i10000# #i10000# changes from OOO330 m20
Diffstat (limited to 'cppcanvas')
-rw-r--r-- | cppcanvas/source/mtfrenderer/implrenderer.cxx | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx index 006d55a01de6..bab5826e54aa 100644 --- a/cppcanvas/source/mtfrenderer/implrenderer.cxx +++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx @@ -682,10 +682,23 @@ namespace cppcanvas case GRADIENT_AXIAL: { - basegfx::tools::createLinearODFGradientInfo(aGradInfo, + // 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, aBounds, nSteps, - fBorder, + fAxialBorder, fRotation); // map odf to svg gradient orientation - x // instead of y direction |