1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-12-05 00:39:09 +01:00

Compare commits

..

No commits in common. "50b0ff1c562ded5e02a54080ac7649d5572bef40" and "961061b6433772ec24ddeb9fbe7445fc57bcc1d7" have entirely different histories.

2 changed files with 6 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 214 B

After

Width:  |  Height:  |  Size: 224 B

View File

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