summaryrefslogtreecommitdiff
path: root/cppcanvas/source/mtfrenderer
diff options
context:
space:
mode:
authorPatrick J <patj@mail.de>2017-01-30 18:39:26 +0100
committerKatarina Behrens <Katarina.Behrens@cib.de>2017-01-31 09:26:02 +0000
commite3a47c09500828d27c096c5bfb461c61f6e71378 (patch)
tree809dea9e646217fe820c8aebef554a0b13c10db1 /cppcanvas/source/mtfrenderer
parent695c8bc98a486d01d00a2fda3e05fb6a615fc1bf (diff)
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@cib.de> Tested-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'cppcanvas/source/mtfrenderer')
-rw-r--r--cppcanvas/source/mtfrenderer/implrenderer.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx
index 3d630e6c2e13..cdbd5a646755 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,