Fix calculatePath()

This commit is contained in:
Alex 2017-09-22 10:43:51 +03:00
parent 14908992e4
commit eb68fbe73d

View file

@ -166,6 +166,13 @@ public abstract class OsmandMapLayer {
prevY = (int) (intersection & 0xffffffff);
draw = true;
}
if (xs.size() == 2 && !currIn) {
long inter = MapAlgorithms.calculateIntersection(prevX, prevY, currX, currY, 0, width, height, 0);
if (inter != -1) {
currX = (int) (inter >> 32);
currY = (int) (inter & 0xffffffff);
}
}
}
if (draw) {
if (!segmentStarted) {