From 8a37f5f6b4ab63615de67aee90d260c9d494f3a0 Mon Sep 17 00:00:00 2001 From: Dorreen Rostami Date: Wed, 11 Oct 2023 18:47:56 -0400 Subject: [PATCH] casting to float --- src/main/java/de/dennisguse/opentracks/chart/ChartView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/dennisguse/opentracks/chart/ChartView.java b/src/main/java/de/dennisguse/opentracks/chart/ChartView.java index d51155444..ecd3fcd30 100644 --- a/src/main/java/de/dennisguse/opentracks/chart/ChartView.java +++ b/src/main/java/de/dennisguse/opentracks/chart/ChartView.java @@ -636,7 +636,7 @@ private void drawMarker(Canvas canvas) { canvas.save(); float x = getX(getMarkerXValue(marker)); canvas.drawLine(x, (float)(topBorder) + spacer + markerHeight / 2, x, (float)(topBorder) + effectiveHeight, markerPaint); - canvas.translate(x - (markerWidth * MARKER_X_ANCHOR), (float)(topBorder) + spacer); + canvas.translate(x - (markerWidth * MARKER_X_ANCHOR), (float)(topBorder + spacer)); markerPin.draw(canvas); canvas.restore();