From 41303146c77977543e33440e9d75ec86f4de6479 Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Sat, 13 Aug 2016 16:26:02 +0300 Subject: [PATCH] Fix transport route rotation --- OsmAnd/src/net/osmand/plus/views/TransportStopsLayer.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/views/TransportStopsLayer.java b/OsmAnd/src/net/osmand/plus/views/TransportStopsLayer.java index 5c321802e0..6c9db707af 100644 --- a/OsmAnd/src/net/osmand/plus/views/TransportStopsLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/TransportStopsLayer.java @@ -171,7 +171,6 @@ public class TransportStopsLayer extends OsmandMapLayer implements ContextMenuLa data.queryNewData(tb); if(route != null) { attrs.updatePaints(view, settings, tb); - canvas.rotate(-tb.getRotate(), tb.getCenterPixelX(), tb.getCenterPixelY()); try { path.reset(); List ws = route.getForwardWays(); @@ -190,8 +189,8 @@ public class TransportStopsLayer extends OsmandMapLayer implements ContextMenuLa } } attrs.drawPath(canvas, path); - } finally { - canvas.rotate(tb.getRotate(), tb.getCenterPixelX(), tb.getCenterPixelY()); + } catch (Exception e) { + // ignore } }