Filter out unknown paper sizes
This commit is contained in:
parent
a5c93cd422
commit
0f0c764d64
1 changed files with 3 additions and 3 deletions
|
@ -396,9 +396,9 @@ function unitsIsDpi(resolution)
|
||||||
return resolution.units == 3;
|
return resolution.units == 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
function notCustomPaperSize(media)
|
function knownPaperSize(mediaName)
|
||||||
{
|
{
|
||||||
return media.indexOf("custom_") != 0;
|
return media.hasOwnProperty(mediaName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -451,7 +451,7 @@ function fixupChoices(name, choices, mimeType)
|
||||||
return choices;
|
return choices;
|
||||||
}
|
}
|
||||||
case "media":
|
case "media":
|
||||||
return choices.filter(notCustomPaperSize);
|
return choices.filter(knownPaperSize);
|
||||||
default:
|
default:
|
||||||
return choices;
|
return choices;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue