[Libreoffice-commits] core.git: cppcanvas/source
Patrick J
patj at mail.de
Tue Jan 31 09:26:33 UTC 2017
cppcanvas/source/mtfrenderer/implrenderer.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit e3a47c09500828d27c096c5bfb461c61f6e71378
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>
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx
index 3d630e6..cdbd5a6 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