From 74125e9925c75c7b288a2e3f2bb9a88b54fdadad Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Tue, 28 Jul 2020 15:17:55 +0300 Subject: [PATCH] Remove unnecessary subtraction --- .../net/osmand/plus/mapcontextmenu/other/TrackDetailsMenu.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/other/TrackDetailsMenu.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/other/TrackDetailsMenu.java index 98a022061d..dd8e64825c 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/other/TrackDetailsMenu.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/other/TrackDetailsMenu.java @@ -152,7 +152,7 @@ public class TrackDetailsMenu { float highestVisibleX = chart.getHighestVisibleX(); float nextVisibleX = lowestVisibleX + (pos - gpxItem.chartHighlightPos); float oneFourthDiff = (highestVisibleX - lowestVisibleX) / 4f; - if (pos - oneFourthDiff > 0) { + if (pos > oneFourthDiff) { nextVisibleX = pos - oneFourthDiff; } gpxItem.chartHighlightPos = pos;