]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Allow "EnvSizeName" for all size names.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Mon, 3 Oct 2011 15:45:53 +0000 (15:45 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Mon, 3 Oct 2011 15:45:53 +0000 (15:45 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10037 7a7537e8-13f0-0310-91df-b6672ffda945

systemv/cupstestppd.c

index bc134e6079c3b64a3d1c91083bbd94e47c21dc5e..1c6f4dbfb99860fa4079bcae21f00cf5b0e34a7d 100644 (file)
@@ -3262,7 +3262,16 @@ check_sizes(ppd_file_t *ppd,             /* I - PPD file */
            is_ok = 0;
         }
        else
-         is_ok = 0;
+       {
+        /*
+         * Check for EnvSizeName as well...
+         */
+
+         snprintf(buf, sizeof(buf), "Env%s", pwg_media->ppd);
+
+         if (strcmp(size->name, buf))
+           is_ok = 0;
+       }
 
         if (!is_ok)
           _cupsLangPrintf(stdout,