1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 03:35:53 +01:00

Code cleanup

This commit is contained in:
Martin Tůma 2023-05-29 23:19:16 +02:00
parent 961061b643
commit 2b300fab54

View File

@ -103,12 +103,10 @@ static Coordinates centroid(const QVector<Coordinates> &polygon)
static double angle(uint type, const QVariant &param)
{
if (type>>16 == RDOCAL || type>>16 == I_RDOCAL)
return 90 + param.toDouble();
else if (type>>16 == CURENT)
return 90 + param.toDouble();
else
return NAN;
uint bt = type>>16;
return (bt == RDOCAL || bt == I_RDOCAL || bt == CURENT)
? 90 + param.toDouble() : NAN;
}
static bool showLabel(const QImage *img, const Range &range, int zoom, int type)