diff options
Diffstat (limited to 'basegfx/source/tools')
-rw-r--r-- | basegfx/source/tools/gradienttools.cxx | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/basegfx/source/tools/gradienttools.cxx b/basegfx/source/tools/gradienttools.cxx index 4aa909fcf58c..b27443898f4e 100644 --- a/basegfx/source/tools/gradienttools.cxx +++ b/basegfx/source/tools/gradienttools.cxx @@ -467,7 +467,7 @@ namespace basegfx { const B2DPoint aCoor(rGradInfo.getBackTextureTransform() * rUV); - // Ignore Y, this is not needed at all for Y-Oriented gradients + // Ignore X, this is not needed at all for Y-Oriented gradients // if(aCoor.getX() < 0.0 || aCoor.getX() > 1.0) // { // return 0.0; @@ -483,13 +483,6 @@ namespace basegfx return 1.0; // end value for outside } - // const sal_uInt32 nSteps(rGradInfo.getRequestedSteps()); - - // if(nSteps) - // { - // return floor(aCoor.getY() * nSteps) / double(nSteps - 1); - // } - return aCoor.getY(); } @@ -497,7 +490,7 @@ namespace basegfx { const B2DPoint aCoor(rGradInfo.getBackTextureTransform() * rUV); - // Ignore Y, this is not needed at all for Y-Oriented gradients + // Ignore X, this is not needed at all for Y-Oriented gradients //if(aCoor.getX() < 0.0 || aCoor.getX() > 1.0) //{ // return 0.0; @@ -510,13 +503,6 @@ namespace basegfx return 1.0; // use end value when outside in Y } - const sal_uInt32 nSteps(rGradInfo.getRequestedSteps()); - - if(nSteps) - { - return floor(fAbsY * nSteps) / double(nSteps - 1); - } - return fAbsY; } |