Fix calculatePath()
This commit is contained in:
parent
14908992e4
commit
eb68fbe73d
1 changed files with 7 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue