mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 06:28:01 +02:00
[test/make-html.pl] Don't include links to non-existent images.
Some tests do not generate output images, so do not insert a link if we don't have an image.
This commit is contained in:
parent
17fbb652b1
commit
c56385eacc
1 changed files with 2 additions and 0 deletions
|
|
@ -199,6 +199,8 @@ printl '</tr>';
|
|||
sub img_for {
|
||||
my ($fn, $withlink) = @_;
|
||||
|
||||
return "" unless defined $fn;
|
||||
|
||||
if ($config_show_inline) {
|
||||
$fn = file_to_data("image/png", $fn);
|
||||
# never return links, people can just right-click view image,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue