Do not print markers outside the image.
This commit is contained in:
parent
6d4d17f3ed
commit
a549247a11
@ -75,7 +75,9 @@ class ExtraMarkerPrinter
|
||||
|
||||
$point = new Point($destX, $destY);
|
||||
|
||||
$markerImage->paste($canvas->getImage(), $point);
|
||||
if ($canvas->getImage()->getSize()->contains($markerImage->getSize(), $point)) {
|
||||
$markerImage->paste($canvas->getImage(), $point);
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user