]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix testppd unit test - wrong fullbleed size name.
authorMichael R Sweet <msweet@msweet.org>
Wed, 7 May 2025 15:38:18 +0000 (11:38 -0400)
committerMichael R Sweet <msweet@msweet.org>
Wed, 7 May 2025 15:38:18 +0000 (11:38 -0400)
cups/ppd-mark.c
cups/testppd.c

index 964e35eb5f065ddce94f0382f48f3e0f3538abbc..3e1a5968bf87b4b181151f3e22a8f838db407595 100644 (file)
@@ -125,7 +125,7 @@ cupsMarkOptions(
       * Mark it...
       */
 
-      if (!_cups_strncasecmp(s, "Custom.", 7) || ppdPageSize(ppd, s))
+      if (!_cups_strncasecmp(s, "Custom.", 7) && ppdPageSize(ppd, s))
        ppd_mark_option(ppd, "PageSize", s);
       else if ((ppd_keyword = _ppdCacheGetPageSize(cache, NULL, s, NULL)) != NULL)
        ppd_mark_option(ppd, "PageSize", ppd_keyword);
index 61abce61c4c98daba2daf979a2383c69c23c94b2..9cac71508f968297f450cc3c3b9a345bf93315ab 100644 (file)
@@ -605,8 +605,8 @@ main(int  argc,                             /* I - Number of command-line arguments */
     else
       puts("PASS");
 
-    fputs("cupsMarkOptions(media=oe_letter-fullbleed_8.5x11in): ", stdout);
-    num_options = cupsAddOption("media", "oe_letter-fullbleed_8.5x11in", 0,
+    fputs("cupsMarkOptions(media=oe_letter.fullbleed_8.5x11in): ", stdout);
+    num_options = cupsAddOption("media", "oe_letter.fullbleed_8.5x11in", 0,
                                 &options);
     cupsMarkOptions(ppd, num_options, options);
     cupsFreeOptions(num_options, options);