summaryrefslogtreecommitdiff
path: root/drawinglayer/source/texture
diff options
context:
space:
mode:
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);