[Libreoffice-commits] core.git: cppcanvas/source
Stephan Bergmann
sbergman at redhat.com
Wed Jun 12 08:28:03 PDT 2013
cppcanvas/source/mtfrenderer/emfplus.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit fdcd77cdd787b718b5146b5b01f90ef5a18b8117
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Jun 12 17:27:37 2013 +0200
warning C4305: 'argument' : truncation from 'double' to 'float'
Change-Id: Ieee74fd7e7cec65304dd5de9c1368f5449b66407
diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx
index c73d7f1..d3b58aa 100644
--- a/cppcanvas/source/mtfrenderer/emfplus.cxx
+++ b/cppcanvas/source/mtfrenderer/emfplus.cxx
@@ -1328,10 +1328,10 @@ namespace cppcanvas
B2DSize mappedSize( MapSize (dw/2, dh/2));
float endAngle = startAngle + sweepAngle;
- startAngle = fmodf(startAngle, M_PI*2);
+ startAngle = fmodf(startAngle, static_cast<float>(M_PI*2));
if (startAngle < 0)
startAngle += static_cast<float>(M_PI*2);
- endAngle = fmodf(endAngle, M_PI*2);
+ endAngle = fmodf(endAngle, static_cast<float>(M_PI*2));
if (endAngle < 0)
endAngle += static_cast<float>(M_PI*2);
More information about the Libreoffice-commits
mailing list