[Libreoffice-commits] core.git: svx/source
Hideki Ikeda
hideki.ikeda at gmail.com
Wed Jun 25 05:03:03 PDT 2014
svx/source/svdraw/gradtrns.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 03675ab4a8994cb7000fd738d1685720c8b9e584
Author: Hideki Ikeda <hideki.ikeda at gmail.com>
Date: Tue Jun 24 19:05:51 2014 -0400
fdo#37401 - fixed the old vector length
The center-left point in the area is used to calculate the old vector length but the coordinate was incorrect.
Change-Id: I81a88182d11e30ee7a5caee3eac879b082bff160
Reviewed-on: https://gerrit.libreoffice.org/9887
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/svx/source/svdraw/gradtrns.cxx b/svx/source/svdraw/gradtrns.cxx
index 9981df5..7c6bf1e 100644
--- a/svx/source/svdraw/gradtrns.cxx
+++ b/svx/source/svdraw/gradtrns.cxx
@@ -468,7 +468,7 @@ void GradTransformer::VecToGrad(GradTransVector& rV, GradTransGradient& rG, Grad
{
basegfx::B2DVector aFullVec(aStartPos - aEndPos);
const basegfx::B2DPoint aTopLeft(aRange.getMinX(), aRange.getMinY());
- const basegfx::B2DPoint aCenterLeft(aRange.getMinX(), aRange.getHeight());
+ const basegfx::B2DPoint aCenterLeft(aRange.getMinX(), aRange.getMinY() + (aRange.getHeight() / 2.0));
const basegfx::B2DVector aOldVec(aCenterLeft - aTopLeft);
const double fFullLen(aFullVec.getLength());
const double fOldLen(aOldVec.getLength());
More information about the Libreoffice-commits
mailing list