Change the condition
This commit is contained in:
parent
eb68fbe73d
commit
b76bdc515d
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ public abstract class OsmandMapLayer {
|
|||
prevY = (int) (intersection & 0xffffffff);
|
||||
draw = true;
|
||||
}
|
||||
if (xs.size() == 2 && !currIn) {
|
||||
if (i == xs.size() - 1 && !currIn) {
|
||||
long inter = MapAlgorithms.calculateIntersection(prevX, prevY, currX, currY, 0, width, height, 0);
|
||||
if (inter != -1) {
|
||||
currX = (int) (inter >> 32);
|
||||
|
|
Loading…
Reference in a new issue