Bugfix. Building pedestrian and bicycle routes with maps without altitude section.
This commit is contained in:
parent
796affb8c3
commit
83c098f9e5
1 changed files with 4 additions and 1 deletions
|
@ -54,7 +54,10 @@ AltitudeLoader::AltitudeLoader(MwmValue const & mwmValue)
|
|||
}
|
||||
}
|
||||
|
||||
bool AltitudeLoader::HasAltitudes() const { return m_header.m_minAltitude != kInvalidAltitude; }
|
||||
bool AltitudeLoader::HasAltitudes() const
|
||||
{
|
||||
return m_reader != nullptr && m_header.m_minAltitude != kInvalidAltitude;
|
||||
}
|
||||
|
||||
TAltitudes const & AltitudeLoader::GetAltitudes(uint32_t featureId, size_t pointCount)
|
||||
{
|
||||
|
|
Reference in a new issue