Default result on intersection fix

This commit is contained in:
DataHoarder 2022-01-07 21:40:44 +01:00
parent 4e87f108e9
commit f7212e1d16

View file

@ -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;
}