From fe8e76b5b43788ac23a3f5b1be92c469b3677073 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 8 Aug 2016 00:23:23 +0300 Subject: [PATCH 1/2] Fix test --- .../net/osmand/plus/views/mapwidgets/NextTurnInfoWidget.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/views/mapwidgets/NextTurnInfoWidget.java b/OsmAnd/src/net/osmand/plus/views/mapwidgets/NextTurnInfoWidget.java index 27a28b4d19..5718236d20 100644 --- a/OsmAnd/src/net/osmand/plus/views/mapwidgets/NextTurnInfoWidget.java +++ b/OsmAnd/src/net/osmand/plus/views/mapwidgets/NextTurnInfoWidget.java @@ -185,7 +185,7 @@ public class NextTurnInfoWidget extends TextInfoWidget { if(textPaint != null ) { if (turnType != null && !mini && turnType.getExitOut() > 0) { canvas.drawText(turnType.getExitOut() + "", centerText.x, - centerText.y + textPaint.getTextSize() / 2, textPaint); + centerText.y - textPaint.ascent / 2, textPaint); } } } From b79d73137cead96d465ffbdc490c91d214ef73b4 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 8 Aug 2016 00:24:51 +0300 Subject: [PATCH 2/2] Fix centering roundabout text --- .../net/osmand/plus/views/mapwidgets/NextTurnInfoWidget.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/views/mapwidgets/NextTurnInfoWidget.java b/OsmAnd/src/net/osmand/plus/views/mapwidgets/NextTurnInfoWidget.java index 5718236d20..e7a37fba1a 100644 --- a/OsmAnd/src/net/osmand/plus/views/mapwidgets/NextTurnInfoWidget.java +++ b/OsmAnd/src/net/osmand/plus/views/mapwidgets/NextTurnInfoWidget.java @@ -185,7 +185,7 @@ public class NextTurnInfoWidget extends TextInfoWidget { if(textPaint != null ) { if (turnType != null && !mini && turnType.getExitOut() > 0) { canvas.drawText(turnType.getExitOut() + "", centerText.x, - centerText.y - textPaint.ascent / 2, textPaint); + centerText.y - textPaint.ascent() / 2, textPaint); } } }