Fixing obvious typo with the centering.

This commit is contained in:
sergiotarxz 2022-11-14 00:54:51 +01:00
parent 97c98cb2f4
commit a6d9fe6547

View File

@ -147,7 +147,7 @@ sub _AttachImageSVG {
$width = $SVG_EMBEDDED_IMAGE_MAX_WIDTH;
}
my $x = int(($SVG_EMBEDDED_IMAGE_MAX_WIDTH/2) - ($width / 2));
my $x = int(($SVG_WIDTH/2) - ($width / 2));
my $y = 90;
my ($output) = capture {
system qw/file --mime-type/, $image;