]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
libcupsfilters: In generated PPDs add an "OutputBin" option also with one choice
authorTill Kamppeter <till.kamppeter@gmail.com>
Tue, 1 Dec 2020 22:51:02 +0000 (23:51 +0100)
committerTill Kamppeter <till.kamppeter@gmail.com>
Wed, 2 Dec 2020 11:11:05 +0000 (12:11 +0100)
(cherry picked from commit 2c36d508b18c82c03c90054eeb0cc5fa70e95f7a)

NEWS
cupsfilters/ppdgenerator.c

diff --git a/NEWS b/NEWS
index 5658f1cda4215b9d94644c557c70826a75a6ac45..de16a663e6e5968b8a26951d8bd5c56cb8e269a0 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,8 @@ NEWS - OpenPrinting CUPS Filters v1.28.5 - 2020-10-13
 
 CHANGES IN V1.28.6
 
+       - libcupsfilters: In generated PPDs add an "OutputBin" option
+         also if it has only one choice (from OpenPrinting CUPS).
        - libcupsfilters: Generated PPDs could have an "Unknown"
          default InputSlot (OpenPrinting CUPS issue #44).
        - cups-browsed: Removed unneeded IPP attribute additions
index 9ec7c63eeb67bb9c68e9fd543b03dd145b009efd..41f52ba57e1705c4031c7d4fe1d575b2800e55ea 100644 (file)
@@ -3092,7 +3092,7 @@ ppdCreateFromIPP2(char         *buffer,          /* I - Filename buffer */
 
   if ((attr = ippFindAttribute(response, "output-bin-supported",
                               IPP_TAG_ZERO)) != NULL &&
-      (count = ippGetCount(attr)) > 1) {
+      (count = ippGetCount(attr)) > 0) {
     static const char * const output_bins[][2] =
     {                                  /* "output-bin" strings */
       { "auto", _("Automatic") },