Fix parsing of negative elevations in product description block

This commit is contained in:
AdenKoperczak 2025-04-12 11:05:21 -04:00
parent 316da55000
commit 5968fd981c
No known key found for this signature in database
GPG key ID: 9843017036F62EE7

View file

@ -726,7 +726,7 @@ units::angle::degrees<double> ProductDescriptionBlock::elevation() const
if (p->elevationNumber_ > 0)
{
elevation = p->parameters_[2] * 0.1;
elevation = static_cast<int16_t>(p->parameters_[2]) * 0.1;
}
return units::angle::degrees<double> {elevation};