Fix problems from rebase, clean up debian packaging definition.

Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
Michael Keller 2024-09-13 12:27:26 +12:00
parent 28cd093d37
commit 478e444cd9
2 changed files with 3 additions and 4 deletions

View file

@ -535,8 +535,8 @@ static bool parseASF(QFile &f, metadata *metadata)
degrees_t degminsec_to_udeg(float a[3])
{
if (a[0] == 0.0 && a[1] == 0.0 && a[2] == 0.0)
return { 0 };
return { static_cast<int>(round(a[0] * 1'000'000.0 +
return { .udeg = 0 };
return { .udeg = static_cast<int>(round(a[0] * 1'000'000.0 +
a[1] * (1'000'000.0/60.0) +
a[2] * (1'000'000.0/3600.0))) };
}