Fix issue #8835
This commit is contained in:
parent
dde9cf2dbd
commit
3e6733d538
1 changed files with 13 additions and 4 deletions
|
@ -182,11 +182,20 @@ public class MapAlgorithms {
|
|||
}
|
||||
|
||||
}
|
||||
if (outx == rightX || outx == leftX) {
|
||||
if (outy >= topY && outy <= bottomY) {
|
||||
bx = outx;
|
||||
by = outy;
|
||||
return combine2Points(bx, by);
|
||||
}
|
||||
}
|
||||
|
||||
if (outx == rightX || outx == leftX || outy == topY || outy == bottomY) {
|
||||
bx = outx;
|
||||
by = outy;
|
||||
//return (((long) bx) << 32) | ((long) by);
|
||||
if (outy == topY || outy == bottomY) {
|
||||
if (leftX <= outx && outx <= rightX) {
|
||||
bx = outx;
|
||||
by = outy;
|
||||
return combine2Points(bx, by);
|
||||
}
|
||||
}
|
||||
return -1L;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue