Filter out custom paper sizes

(we can't handle them anyway)
This commit is contained in:
Anton Thomasson 2021-12-02 20:00:43 +01:00
parent aa1dbea32c
commit 308fb431b5

View file

@ -396,6 +396,11 @@ function unitsIsDpi(resolution)
return resolution.units == 3;
}
function notCustomPaperSize(media)
{
return media.indexOf("custom_") != 0;
}
function fixupChoices(name, choices, mimeType)
{
@ -445,6 +450,8 @@ function fixupChoices(name, choices, mimeType)
{
return choices;
}
case "media":
return choices.filter(notCustomPaperSize);
default:
return choices;
}