]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix testppd unit test (wrong fullbleed media size) and also fix the
authorMichael R Sweet <msweet@msweet.org>
Wed, 7 May 2025 15:36:30 +0000 (11:36 -0400)
committerMichael R Sweet <msweet@msweet.org>
Wed, 7 May 2025 15:36:30 +0000 (11:36 -0400)
custom size support in cupsMarkOptions.

cups/ppd-mark.c
cups/testppd.c

index b13d0c5492c1a445dfdfc626b6abedd13c9eee12..b44a5238872d0c2c8c8893fff50f63d536e8b560 100644 (file)
@@ -129,7 +129,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 8836d384a14d6fe591a43daead05da1aad2a1896..13839e0169d71dc6ba5f69b1da7feda016f55d36 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);