mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 22:03:37 +02:00
Fix extent logic change from 28bd985a31
This commit is contained in:
@@ -107,9 +107,9 @@ Object.assign(geoExtent.prototype, {
|
||||
var a1 = this.intersection(obj).area();
|
||||
var a2 = this.area();
|
||||
|
||||
if (a1 === Infinity || a2 === Infinity || a2 === 0) {
|
||||
if (a1 === Infinity || a2 === Infinity) {
|
||||
return 0;
|
||||
} else if (a1 === 0) {
|
||||
} else if (a1 === 0 || a2 === 0) {
|
||||
if (obj.contains(this)) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user