diff options
author | Hideki Ikeda <hideki.ikeda@gmail.com> | 2014-06-24 19:05:51 -0400 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-25 12:02:37 +0000 |
commit | 03675ab4a8994cb7000fd738d1685720c8b9e584 (patch) | |
tree | 75af5eb95e65dc4f0a88473aba7077f8017ff803 /svx | |
parent | b40145eb174396516ff60c2512064451182fb59d (diff) |
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@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/gradtrns.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/svdraw/gradtrns.cxx b/svx/source/svdraw/gradtrns.cxx index 9981df534c05..7c6bf1ef5ee1 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()); |