[Libreoffice-commits] core.git: Branch 'libreoffice-5-3' - cppcanvas/source
Patrick J
patj at mail.de
Tue Feb 7 08:34:46 UTC 2017
cppcanvas/source/mtfrenderer/implrenderer.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit faad3143c88b9b378b273abef36727405dcf3697
Author: Patrick J <patj at mail.de>
Date: Mon Jan 30 18:39:26 2017 +0100
tdf#101638 diameter and radius were mixed up, devide by two
Change-Id: Iaece1ca3439ab3e1029156a5847768728b53b96e
Reviewed-on: https://gerrit.libreoffice.org/33717
Reviewed-by: Katarina Behrens <Katarina.Behrens at cib.de>
Tested-by: Katarina Behrens <Katarina.Behrens at cib.de>
(cherry picked from commit e3a47c09500828d27c096c5bfb461c61f6e71378)
Reviewed-on: https://gerrit.libreoffice.org/33894
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx
index 0e41235..aa3a132 100644
--- a/cppcanvas/source/mtfrenderer/implrenderer.cxx
+++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx
@@ -1993,8 +1993,8 @@ namespace cppcanvas
::basegfx::B2DPolygon aPoly(
::basegfx::tools::createPolygonFromEllipse(
aRange.getCenter(),
- aRange.getWidth(),
- aRange.getHeight() ));
+ aRange.getWidth() / 2, // divide by 2 since createPolygonFromEllipse
+ aRange.getHeight() / 2 )); // expects the radius and NOT the diameter!
aPoly.transform( rStates.getState().mapModeTransform );
createFillAndStroke( aPoly,
More information about the Libreoffice-commits
mailing list