tools: Fixed buildicon to support rectangular icons.

This commit is contained in:
Joel Holdsworth 2010-04-20 23:50:58 +01:00 committed by Alexandre Julliard
parent 60fad33ae9
commit 310561acbb

View file

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