[Libreoffice-commits] core.git: Branch 'distro/suse/suse-4.0.3' - cppcanvas/source
Michael Meeks
michael.meeks at suse.com
Mon Jun 10 04:10:18 PDT 2013
cppcanvas/source/mtfrenderer/emfplus.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 162fad1f3ccdb65aa682bb57508dd818721766c5
Author: Michael Meeks <michael.meeks at suse.com>
Date: Mon Jun 10 12:10:50 2013 +0100
fix emfplus windows build.
diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx
index 30fa12e..2ac9207 100644
--- a/cppcanvas/source/mtfrenderer/emfplus.cxx
+++ b/cppcanvas/source/mtfrenderer/emfplus.cxx
@@ -1294,12 +1294,12 @@ namespace cppcanvas
B2DSize mappedSize( MapSize (dw/2, dh/2));
float endAngle = startAngle + sweepAngle;
- startAngle = fmod (startAngle, M_PI*2);
+ startAngle = fmodf (startAngle, M_PI*2);
if (startAngle < 0)
- startAngle += M_PI*2;
- endAngle = fmod (endAngle, M_PI*2);
+ startAngle += static_cast<float>(M_PI*2);
+ endAngle = fmodf (endAngle, M_PI*2);
if (endAngle < 0)
- endAngle += M_PI*2;
+ endAngle += static_cast<float>(M_PI*2);
if (sweepAngle < 0)
std::swap (endAngle, startAngle);
More information about the Libreoffice-commits
mailing list