mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-12-01 07:01:16 +01:00
Optimization
This commit is contained in:
parent
c1f36e5fbb
commit
0e9720f68b
@ -421,7 +421,7 @@ void IMGMap::processShields(QList<IMG::Poly> &lines, const QRect &tileRect,
|
|||||||
= shields.constBegin(); it != shields.constEnd(); ++it) {
|
= shields.constBegin(); it != shields.constEnd(); ++it) {
|
||||||
const QPolygonF &p = it.value();
|
const QPolygonF &p = it.value();
|
||||||
QRectF rect(p.boundingRect() & tileRect);
|
QRectF rect(p.boundingRect() & tileRect);
|
||||||
if (qSqrt(AREA(rect)) < qSqrt(AREA(tileRect)) / 8)
|
if (qSqrt(AREA(rect)) < 32)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
QMap<qreal, int> map;
|
QMap<qreal, int> map;
|
||||||
|
Loading…
Reference in New Issue
Block a user