summaryrefslogtreecommitdiff
path: root/cppcanvas
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2011-02-08 00:19:54 +0100
committerJan Holesovsky <kendy@suse.cz>2011-02-08 00:19:54 +0100
commit9943d9dfaccc5df4a3b1b1b81cc4bc30ba92cf7e (patch)
treedfbdb501de19fd4de8d2acdd7b8f878ecb466470 /cppcanvas
parentdedffc5920d285b5194fff7ff9e23cce8fb5c092 (diff)
parent07a948b36174d3ac2023a6c1b5b18f3628410fc4 (diff)
Merge remote branch 'origin/libreoffice-3-3'
Conflicts: vcl/unx/kde4/KDESalGraphics.cxx vcl/unx/source/gdi/salgdi.cxx
Diffstat (limited to 'cppcanvas')
-rw-r--r--cppcanvas/source/mtfrenderer/implrenderer.cxx17
1 files changed, 15 insertions, 2 deletions
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx
index b36d8f962297..d95bfeb24c9f 100644
--- a/cppcanvas/source/mtfrenderer/implrenderer.cxx
+++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx
@@ -686,10 +686,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