Commit 310561ac authored by Joel Holdsworth's avatar Joel Holdsworth Committed by Alexandre Julliard

tools: Fixed buildicon to support rectangular icons.

parent 60fad33a
......@@ -79,10 +79,12 @@ sub svg_element_start
# Extract SVG vector images
my $x = $attr{'x'};
my $y = $attr{'y'};
my $width = $attr{'width'};
my $height = $attr{'height'};
if(defined($x) and defined($x)) {
if($x =~ /\d*/ and $y =~ /\d*/) {
shell $convert, $renderedSVGFileName, "-crop", "${size}x${size}+$x+$y", $pngFileName;
shell $convert, $renderedSVGFileName, "-crop", "${width}x${height}+$x+$y", $pngFileName;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment