small improvement
This commit is contained in:
parent
d017b55d1d
commit
ce3831e4db
1 changed files with 1 additions and 1 deletions
|
@ -496,7 +496,7 @@ public class SelectedGPXFragment extends OsmAndListFragment {
|
|||
}
|
||||
|
||||
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.setMaxElevation(child.analysis.maxElevation);
|
||||
elevationImg.setMinElevation(child.analysis.minElevation);
|
||||
|
|
Loading…
Reference in a new issue