Ronald Niederhagen
Ronald Niederhagen
Is this what you mean: https://github.com/bomilkar/XCSoar/commit/2cbbfc95de2e2088d1d13c3510bd5560d163eaa4
This would do it: ``` auto &way_points = *data_components->waypoints; for (auto &wp : way_points) { if (wp->elevation_source != FILE) { factory.FallbackElevation(wp); } } ``` if I knew how to get...
I thought: The CUP file is always right, therefore (elevation_source == FILE) is the only safe source for elevation. Everything else is guesswork and should be reevaluated. Right?
OK, you're right. I have 2 questions: 1. which is the instance of class WaypointFactory so that I can call FallbackElevation() ? 2. if we wrap that code into a...