Fix transport route rotation
This commit is contained in:
parent
38597e96ad
commit
41303146c7
1 changed files with 2 additions and 3 deletions
|
@ -171,7 +171,6 @@ public class TransportStopsLayer extends OsmandMapLayer implements ContextMenuLa
|
||||||
data.queryNewData(tb);
|
data.queryNewData(tb);
|
||||||
if(route != null) {
|
if(route != null) {
|
||||||
attrs.updatePaints(view, settings, tb);
|
attrs.updatePaints(view, settings, tb);
|
||||||
canvas.rotate(-tb.getRotate(), tb.getCenterPixelX(), tb.getCenterPixelY());
|
|
||||||
try {
|
try {
|
||||||
path.reset();
|
path.reset();
|
||||||
List<Way> ws = route.getForwardWays();
|
List<Way> ws = route.getForwardWays();
|
||||||
|
@ -190,8 +189,8 @@ public class TransportStopsLayer extends OsmandMapLayer implements ContextMenuLa
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
attrs.drawPath(canvas, path);
|
attrs.drawPath(canvas, path);
|
||||||
} finally {
|
} catch (Exception e) {
|
||||||
canvas.rotate(tb.getRotate(), tb.getCenterPixelX(), tb.getCenterPixelY());
|
// ignore
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue