Kaydet (Commit) de2dd7a1 authored tarafından Andre Fischer's avatar Andre Fischer Kaydeden (comit) Thorsten Behrens

calc65: #i116318# Fixed the painting of axial gradients.

Signed-off-by: 's avatarThorsten Behrens <tbehrens@novell.com>
üst e7df509d
...@@ -686,10 +686,23 @@ namespace cppcanvas ...@@ -686,10 +686,23 @@ namespace cppcanvas
case GRADIENT_AXIAL: 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, aBounds,
nSteps, nSteps,
fBorder, fAxialBorder,
fRotation); fRotation);
// map odf to svg gradient orientation - x // map odf to svg gradient orientation - x
// instead of y direction // instead of y direction
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment