[Libreoffice-commits] core.git: Branch 'distro/suse/suse-4.0' - cppcanvas/source

Michael Meeks michael.meeks at suse.com
Mon Jun 10 04:01:25 PDT 2013


 cppcanvas/source/mtfrenderer/emfplus.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit c07f2af71c2bb1dc06cf1a1d46aa1ff424c1acb7
Author: Michael Meeks <michael.meeks at suse.com>
Date:   Mon Jun 10 12:01:31 2013 +0100

    Fix windows compile of Arc fix.

diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx
index 501ed01..0370ef6 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