1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-02-22 18:20:49 +01:00

Compare commits

..

No commits in common. "398ef2c4f5b74badbc04b064c1e0a70f8da35400" and "ac414835309ac96b95997eba3edd846844858a22" have entirely different histories.

2 changed files with 10 additions and 7 deletions

View File

@ -282,6 +282,7 @@ void RasterTile::processPoints(QList<MapData::Point> &points,
attr.value(LITVIS).toUInt(), range, attr.value(LITVIS).toUInt(), range,
attr.value(SECTR1).toDouble(), attr.value(SECTR2).toDouble())); attr.value(SECTR1).toDouble(), attr.value(SECTR2).toDouble()));
slMap.insert(point.pos()); slMap.insert(point.pos());
qDebug() << attr;
} else } else
lightsMap.insert(point.pos(), color); lightsMap.insert(point.pos(), color);
} else if (point.type()>>16 == FOGSIG) } else if (point.type()>>16 == FOGSIG)

View File

@ -274,6 +274,7 @@ void RasterTile::drawSectorLights(QPainter *painter,
} }
} }
} else { } else {
if (p->lights.color && p->lights.range) {
QRect rect(lightRect(pos, p->lights.range)); QRect rect(lightRect(pos, p->lights.range));
painter->setPen(QPen(Qt::black, 6, Qt::SolidLine, Qt::FlatCap)); painter->setPen(QPen(Qt::black, 6, Qt::SolidLine, Qt::FlatCap));
@ -283,6 +284,7 @@ void RasterTile::drawSectorLights(QPainter *painter,
painter->drawArc(rect, 0, 360 * 16); painter->drawArc(rect, 0, 360 * 16);
} }
} }
}
} }
static void removeDuplicitLabel(QList<TextItem *> &labels, const QString &text, static void removeDuplicitLabel(QList<TextItem *> &labels, const QString &text,