Skip to content

Commit

Permalink
Use pwgMediaForSize when looking up PPD sizes (Issue #5633)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Dec 2, 2019
1 parent e90a53a commit 9240cd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Changes in CUPS v2.3.1

- Documentation updates (Issue #5661, #5674, #5682)
- Fixed a crash bug in the web interface (Issue #5621)
- The PPD cache code now looks up page sizes using their dimensions
(Issue #5633)
- PPD files containing "custom" option keywords did not work (Issue #5639)
- Added a workaround for the scheduler's systemd support (Issue #5640)
- On Windows, TLS certificates generated on February 29 would likely fail
Expand Down
2 changes: 1 addition & 1 deletion cups/ppd-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 9240cd7

Please sign in to comment.