]> git.ipfire.org Git - thirdparty/cups.git/commit
Update InputSlot selection for photo sizes (fixes #569) 570/head
authorBenjamin Gordon <bmgordon@chromium.org>
Fri, 2 Dec 2022 17:22:09 +0000 (10:22 -0700)
committerBenjamin Gordon <bmgordon@chromium.org>
Mon, 5 Dec 2022 16:42:09 +0000 (09:42 -0700)
commitb9fc2f44ff0d6bee954c152a2461b05bb175b00d
tree5ac92c0000eee7aaa6362e777b70f1846d87f032
parent227b9f85f70290bb42751098f3ac1ec41526af15
Update InputSlot selection for photo sizes (fixes #569)

_ppdCacheGetInputSlot specifically requests the photo tray for paper
sizes up to 5x7" if the client hasn't specified a media-source.  This
can fail if the photo tray is physically smaller than 5x7 (for example,
L-sized).

Instead of explicitly requesting the photo tray, try to request "auto"
and fall back to "photo" if the printer doesn't provide that as an
option.

Signed-off-by: Benjamin Gordon <bmgordon@chromium.org>
cups/ppd-cache.c