QTfrontend/drawmapscene.cpp
branch0.9.20
changeset 9928 fe4b1ce9b6f8
parent 9555 485b424be769
child 10002 29acde6f200c
--- a/QTfrontend/drawmapscene.cpp	Sat Jan 04 02:36:55 2014 +0100
+++ b/QTfrontend/drawmapscene.cpp	Tue Jan 07 11:40:58 2014 +0100
@@ -459,7 +459,7 @@
         l.append(center);
     } else
     {
-        qreal angleDelta = qMax(0.1, qMin(0.7, 120 / r));
+        qreal angleDelta = qMax(static_cast<qreal> (0.1), qMin(static_cast<qreal> (0.7), 120 / r));
         for(qreal angle = 0.0; angle < 2*M_PI; angle += angleDelta)
             l.append(center + QPointF(rx * cos(angle), ry * sin(angle)));
         l.append(l.first());