[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - cppcanvas/source

Michael Stahl mstahl at redhat.com
Mon Jun 10 03:29:42 PDT 2013


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

New commits:
commit 5d91b8390c06e5c4e887f6398f21a5789f6abb40
Author: Michael Stahl <mstahl at redhat.com>
Date:   Fri Jun 7 20:54:33 2013 +0200

    cppcanvas: try to make MSVC tinderbox happy
    
    Change-Id: If4fd5a788d3907a986e27f5f53d5995c7035f685

diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx
index bb87728..9d9c311 100644
--- a/cppcanvas/source/mtfrenderer/emfplus.cxx
+++ b/cppcanvas/source/mtfrenderer/emfplus.cxx
@@ -1343,12 +1343,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