From d68606bd5de11ae0f2bf82cc069b49e9f537f9e1 Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Wed, 11 Oct 2017 19:12:53 +0300 Subject: [PATCH] Try to fix slope chart --- OsmAnd/src/net/osmand/plus/helpers/GpxUiHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/helpers/GpxUiHelper.java b/OsmAnd/src/net/osmand/plus/helpers/GpxUiHelper.java index 0e25d29d7c..59f3a88b08 100644 --- a/OsmAnd/src/net/osmand/plus/helpers/GpxUiHelper.java +++ b/OsmAnd/src/net/osmand/plus/helpers/GpxUiHelper.java @@ -1440,7 +1440,7 @@ public class GpxUiHelper { calculatedH[k] = ph + (values.get(nextW).getY() - ph) / (values.get(nextW).getX() - pd) * (calculatedDist[k] - pd); } - double SLOPE_PROXIMITY = 150; + double SLOPE_PROXIMITY = 100; if (totalDistance - SLOPE_PROXIMITY < 0) { if (useRightAxis) {