summaryrefslogtreecommitdiff
path: root/cups
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2019-12-02 14:28:09 -0500
committerMichael R Sweet <michael.r.sweet@gmail.com>2019-12-02 14:28:09 -0500
commit9240cd70a234a3814f1de6de3dc5ad8e04d1068a (patch)
tree91d8c6930f389625934d80f52a7a7761d4ede50a /cups
parente90a53ab8d2f8ee3ff142e7f9470abb9e241140f (diff)
downloadcups-9240cd70a234a3814f1de6de3dc5ad8e04d1068a.tar.gz
Use pwgMediaForSize when looking up PPD sizes (Issue #5633)
Diffstat (limited to 'cups')
-rw-r--r--cups/ppd-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cups/ppd-cache.c b/cups/ppd-cache.c
index 5b7c76e85..5965e382b 100644
--- a/cups/ppd-cache.c
+++ b/cups/ppd-cache.c
@@ -1075,7 +1075,7 @@ _ppdCacheCreateWithPPD(ppd_file_t *ppd) /* I - PPD file */
* Convert the PPD size name to the corresponding PWG keyword name.
*/
- if ((pwg_media = pwgMediaForPPD(ppd_size->name)) != NULL)
+ if ((pwg_media = pwgMediaForSize(PWG_FROM_POINTS(ppd_size->width), PWG_FROM_POINTS(ppd_size->length))) != NULL)
{
/*
* Standard name, do we have conflicts?