Default result on intersection fix
This commit is contained in:
parent
4e87f108e9
commit
f7212e1d16
8
deps/martinez-rueda-php/src/Algorithm.php
vendored
8
deps/martinez-rueda-php/src/Algorithm.php
vendored
|
@ -103,6 +103,10 @@ class Algorithm
|
|||
$result = ($subject->ncontours() == 0) ? $clipping : $subject;
|
||||
}
|
||||
|
||||
if ($operation == self::OPERATION_INTERSECTION) {
|
||||
$result = new Polygon([]);
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
@ -130,6 +134,10 @@ class Algorithm
|
|||
}
|
||||
}
|
||||
|
||||
if ($operation == self::OPERATION_INTERSECTION) {
|
||||
$result = new Polygon([]);
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue