Fix altitude correction

This commit is contained in:
Victor Shcherb 2013-02-26 00:25:23 +01:00
parent 97f129be11
commit e6bb14dba1

View file

@ -1148,7 +1148,7 @@ public class MapActivity extends AccessibleActivity implements IMapLocationListe
final GeoidAltitudeCorrection geo = app.getResourceManager().getGeoidAltitudeCorrection(); final GeoidAltitudeCorrection geo = app.getResourceManager().getGeoidAltitudeCorrection();
if (geo != null) { if (geo != null) {
alt -= geo.getGeoidHeight(l.getLatitude(), l.getLongitude()); alt -= geo.getGeoidHeight(l.getLatitude(), l.getLongitude());
l.setAltitude(alt); r.setAltitude(alt);
} }
} }
return r; return r;