QTfrontend/drawmapscene.cpp
branch0.9.20
changeset 9928 fe4b1ce9b6f8
parent 9555 485b424be769
child 10002 29acde6f200c
equal deleted inserted replaced
9926:9d79a52c5586 9928:fe4b1ce9b6f8
   457     if(r < 4)
   457     if(r < 4)
   458     {
   458     {
   459         l.append(center);
   459         l.append(center);
   460     } else
   460     } else
   461     {
   461     {
   462         qreal angleDelta = qMax(0.1, qMin(0.7, 120 / r));
   462         qreal angleDelta = qMax(static_cast<qreal> (0.1), qMin(static_cast<qreal> (0.7), 120 / r));
   463         for(qreal angle = 0.0; angle < 2*M_PI; angle += angleDelta)
   463         for(qreal angle = 0.0; angle < 2*M_PI; angle += angleDelta)
   464             l.append(center + QPointF(rx * cos(angle), ry * sin(angle)));
   464             l.append(center + QPointF(rx * cos(angle), ry * sin(angle)));
   465         l.append(l.first());
   465         l.append(l.first());
   466     }
   466     }
   467 
   467