mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-02-19 09:00:49 +01:00
Unify the lights display logic between ENC ad IMG
This commit is contained in:
parent
398ef2c4f5
commit
59be4aaf1a
@ -277,7 +277,7 @@ void RasterTile::processPoints(QList<MapData::Point> &points,
|
||||
double range = attr.value(VALNMR).toDouble();
|
||||
|
||||
if (attr.contains(SECTR1)
|
||||
|| (range >= 6 && !(point.type() & 0xFFFF))) {
|
||||
|| (range > 6 && !(point.type() & 0xFFFF))) {
|
||||
sectorLights.append(SectorLight(point.pos(), color,
|
||||
attr.value(LITVIS).toUInt(), range,
|
||||
attr.value(SECTR1).toDouble(), attr.value(SECTR2).toDouble()));
|
||||
|
@ -23,7 +23,8 @@ public:
|
||||
};
|
||||
|
||||
Lights() : color(None), range(0) {}
|
||||
bool isSectorLight() const {return ((color && range) || !sectors.isEmpty());}
|
||||
bool isSectorLight() const
|
||||
{return ((color && range > 6) || !sectors.isEmpty());}
|
||||
|
||||
Color color;
|
||||
quint32 range;
|
||||
|
Loading…
x
Reference in New Issue
Block a user