Filter out custom paper sizes
(we can't handle them anyway)
This commit is contained in:
parent
aa1dbea32c
commit
308fb431b5
1 changed files with 7 additions and 0 deletions
|
@ -396,6 +396,11 @@ function unitsIsDpi(resolution)
|
||||||
return resolution.units == 3;
|
return resolution.units == 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function notCustomPaperSize(media)
|
||||||
|
{
|
||||||
|
return media.indexOf("custom_") != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function fixupChoices(name, choices, mimeType)
|
function fixupChoices(name, choices, mimeType)
|
||||||
{
|
{
|
||||||
|
@ -445,6 +450,8 @@ function fixupChoices(name, choices, mimeType)
|
||||||
{
|
{
|
||||||
return choices;
|
return choices;
|
||||||
}
|
}
|
||||||
|
case "media":
|
||||||
|
return choices.filter(notCustomPaperSize);
|
||||||
default:
|
default:
|
||||||
return choices;
|
return choices;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue