mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Cmake export tests: Missed second parameter for writeConverters()
Unfortunatelly the prototype checking in perl is not very sophisticated.
This commit is contained in:
parent
d0acc3e570
commit
87ccd23047
@ -13,6 +13,7 @@ sub getConverters($$$);
|
||||
sub getConverter($$);
|
||||
sub getNext($);
|
||||
sub writeConverters($$);
|
||||
sub createConvLine($$);
|
||||
|
||||
sub getSubstitutes($$@)
|
||||
{
|
||||
@ -78,7 +79,7 @@ sub getConverter($$)
|
||||
($l, $from) = getNext($l);
|
||||
return undef if ($from !~ /tex$/);
|
||||
($l, $to) = getNext($l);
|
||||
return undef if ($to !~ /^(dvi3?|pdf[23456]?)$/);
|
||||
return undef if ($to !~ /^((dvi3?|pdf[23456]?)(log)?)$/);
|
||||
($l, $cmd) = getNext($l);
|
||||
if ($add) {
|
||||
if ($cmd !~ /\-shell-escape/) {
|
||||
@ -165,9 +166,15 @@ sub applyChanges($$$$)
|
||||
}
|
||||
else {
|
||||
$rConverter->{$key}->[2] = 1;
|
||||
$l = &createConvLine($key);
|
||||
$l = &createConvLine($key, $rConverter);
|
||||
}
|
||||
}
|
||||
else {
|
||||
# Converter defined only in preferences
|
||||
$rConverter->{$key} = $entry->[1];
|
||||
$rConverter->{$key}->[2] = 1;
|
||||
$l = &createConvLine($key, $rConverter);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user