[Libreoffice-commits] core.git: svx/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Mar 1 07:49:27 UTC 2019
svx/source/svdraw/svdopath.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 4bdc3ad0e8b50255eef77a74d383adba623c25f6
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Fri Mar 1 07:46:42 2019 +0100
Commit: Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Fri Mar 1 08:48:54 2019 +0100
Slightly reduce rounding errors taking line angle
Change-Id: I7c061e242f24e4aa65064e74121318580c0bbf72
Reviewed-on: https://gerrit.libreoffice.org/68527
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
diff --git a/svx/source/svdraw/svdopath.cxx b/svx/source/svdraw/svdopath.cxx
index fe7f07d8569b..ecbafc92cd53 100644
--- a/svx/source/svdraw/svdopath.cxx
+++ b/svx/source/svdraw/svdopath.cxx
@@ -1672,7 +1672,8 @@ void SdrPathObj::ImpForceLineAngle()
const basegfx::B2DPoint aB2DPoint1(aPoly.getB2DPoint(1));
const Point aPoint0(FRound(aB2DPoint0.getX()), FRound(aB2DPoint0.getY()));
const Point aPoint1(FRound(aB2DPoint1.getX()), FRound(aB2DPoint1.getY()));
- const Point aDelt(aPoint1 - aPoint0);
+ const basegfx::B2DPoint aB2DDelt(aB2DPoint1 - aB2DPoint0);
+ const Point aDelt(FRound(aB2DDelt.getX()), FRound(aB2DDelt.getY()));
aGeo.nRotationAngle=GetAngle(aDelt);
aGeo.nShearAngle=0;
More information about the Libreoffice-commits
mailing list