]> git.ipfire.org Git - thirdparty/cups-filters.git/commit
libcupsfilters: rastertopclm() fails if no default resolution given
authorTill Kamppeter <till.kamppeter@gmail.com>
Mon, 28 Mar 2022 18:00:59 +0000 (20:00 +0200)
committerTill Kamppeter <till.kamppeter@gmail.com>
Mon, 28 Mar 2022 18:00:59 +0000 (20:00 +0200)
commit65d6ffab4076d7d4d867cdb669f59fea1a25ca41
tree6755fe4486ca946b34d80d781c6ef95dd06f2595
parentf40284df08ca4b2f87f91f3a45ae59affbef215b
libcupsfilters: rastertopclm() fails if no default resolution given

Some PCLm printers, especially the ones which support only one
resolution in PCLm ("pclm-source-resolution-supported" IPP attribute)
do not have the "pclm-source-resolution-default" IPP attribute. This
broke rastertopclm().

This is fixed now for both direct use of the printer IPP attributes or
use via an auto-generated PPD file. The missing default resolution is
simply filles with the first item of
"pclm-source-resolution-supported" then. If this item is also missing,
we error out on this printer/PPD file.
cupsfilters/rastertopdf.cpp