small improvement

This commit is contained in:
sonora 2016-11-27 10:58:31 +01:00
parent d017b55d1d
commit ce3831e4db

View file

@ -496,7 +496,7 @@ public class SelectedGPXFragment extends OsmAndListFragment {
} }
ElevationView elevationImg = (ElevationView) row.findViewById(R.id.elevation); ElevationView elevationImg = (ElevationView) row.findViewById(R.id.elevation);
if (child.analysis != null && child.analysis.elevationData != null && child.analysis.isElevationSpecified() && (child.analysis.points > 1)) { if (child.analysis != null && child.analysis.elevationData != null && child.analysis.isElevationSpecified() && (child.analysis.totalDistance > 0)) {
elevationImg.setElevationData(child.analysis.elevationData); elevationImg.setElevationData(child.analysis.elevationData);
elevationImg.setMaxElevation(child.analysis.maxElevation); elevationImg.setMaxElevation(child.analysis.maxElevation);
elevationImg.setMinElevation(child.analysis.minElevation); elevationImg.setMinElevation(child.analysis.minElevation);