summaryrefslogtreecommitdiff
path: root/drawinglayer/source/texture
diff options
context:
space:
mode:
authorthb <thb@openoffice.org>2010-01-16 02:20:50 +0100
committerthb <thb@openoffice.org>2010-01-16 02:20:50 +0100
commit1ef21281ad92b00f76aacdc8795913d64626b813 (patch)
tree919b49e7b0d73a20c8f2bfd39d107a0e576e2c99 /drawinglayer/source/texture
parent39d191d6dcac49b137dbcd3b4e029714016641ea (diff)
#i105937# Fixed a few remaining gradient glitches
* linear/axial gradient were f*cked up when border and rotation was given * found another place where drawinglayer was generating helper polygons for gradients (vclgradienthelper.cxx), adapted to new value ranges * fixed build breakage in debug build in oox * fixed order of gradient color generation
Diffstat (limited to 'drawinglayer/source/texture')
-rw-r--r--drawinglayer/source/texture/texture.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/drawinglayer/source/texture/texture.cxx b/drawinglayer/source/texture/texture.cxx
index 934003ce5a00..c5f255f0a9e9 100644
--- a/drawinglayer/source/texture/texture.cxx
+++ b/drawinglayer/source/texture/texture.cxx
@@ -276,7 +276,7 @@ namespace drawinglayer
if(maGradientInfo.mnSteps)
{
const double fStepSize=1.0 / maGradientInfo.mnSteps;
- for(sal_uInt32 a(1L); a < maGradientInfo.mnSteps; a++)
+ for(sal_uInt32 a(maGradientInfo.mnSteps-1L); a > 0; a--)
{
const basegfx::B2DRange aRect(0, 0, fStepSize*a, fStepSize*a);
impAppendMatrix(rMatrices, aRect);
@@ -391,7 +391,7 @@ namespace drawinglayer
if(maGradientInfo.mnSteps)
{
const double fStepSize=1.0 / maGradientInfo.mnSteps;
- for(sal_uInt32 a(1L); a < maGradientInfo.mnSteps; a++)
+ for(sal_uInt32 a(maGradientInfo.mnSteps-1L); a > 0; a--)
{
const basegfx::B2DRange aRect(0, 0, fStepSize*a, fStepSize*a);
impAppendMatrix(rMatrices, aRect);