added check for elevation

This commit is contained in:
Chumva 2018-02-27 15:44:44 +02:00
parent 0c99915e9b
commit 5197998c7e

View file

@ -309,6 +309,9 @@ public class MeasurementEditingContext {
public void onRouteCalculated(List<Location> locations) {
ArrayList<WptPt> pts = new ArrayList<>(locations.size());
for (Location loc : locations) {
if(!loc.hasAltitude()){
continue;
}
WptPt pt = new WptPt();
pt.lat = loc.getLatitude();
pt.lon = loc.getLongitude();