1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-30 22:51:16 +01:00

Optimization

This commit is contained in:
Martin Tůma 2019-07-13 14:18:16 +02:00
parent c1f36e5fbb
commit 0e9720f68b

View File

@ -421,7 +421,7 @@ void IMGMap::processShields(QList<IMG::Poly> &lines, const QRect &tileRect,
= shields.constBegin(); it != shields.constEnd(); ++it) {
const QPolygonF &p = it.value();
QRectF rect(p.boundingRect() & tileRect);
if (qSqrt(AREA(rect)) < qSqrt(AREA(tileRect)) / 8)
if (qSqrt(AREA(rect)) < 32)
continue;
QMap<qreal, int> map;