|
1 | 1 | /* |
2 | 2 | * Option marking routines for CUPS. |
3 | 3 | * |
4 | | - * Copyright © 2020-2024 by OpenPrinting. |
| 4 | + * Copyright © 2020-2025 by OpenPrinting. |
5 | 5 | * Copyright © 2007-2019 by Apple Inc. |
6 | 6 | * Copyright © 1997-2007 by Easy Software Products, all rights reserved. |
7 | 7 | * |
@@ -131,21 +131,15 @@ cupsMarkOptions( |
131 | 131 | * Mark it... |
132 | 132 | */ |
133 | 133 |
|
134 | | - if (!page_size || !page_size[0]) |
135 | | - { |
136 | | - if (!_cups_strncasecmp(s, "Custom.", 7) || ppdPageSize(ppd, s)) |
137 | | - ppd_mark_option(ppd, "PageSize", s); |
138 | | - else if ((ppd_keyword = _ppdCacheGetPageSize(cache, NULL, s, NULL)) != NULL) |
139 | | - ppd_mark_option(ppd, "PageSize", ppd_keyword); |
140 | | - } |
| 134 | + if (!_cups_strncasecmp(s, "Custom.", 7) || ppdPageSize(ppd, s)) |
| 135 | + ppd_mark_option(ppd, "PageSize", s); |
| 136 | + else if ((ppd_keyword = _ppdCacheGetPageSize(cache, NULL, s, NULL)) != NULL) |
| 137 | + ppd_mark_option(ppd, "PageSize", ppd_keyword); |
141 | 138 |
|
142 | | - if (cache && cache->source_option && |
143 | | - !cupsGetOption(cache->source_option, num_options, options) && |
144 | | - (ppd_keyword = _ppdCacheGetInputSlot(cache, NULL, s)) != NULL) |
| 139 | + if (cache && cache->source_option && (ppd_keyword = _ppdCacheGetInputSlot(cache, NULL, s)) != NULL) |
145 | 140 | ppd_mark_option(ppd, cache->source_option, ppd_keyword); |
146 | 141 |
|
147 | | - if (!cupsGetOption("MediaType", num_options, options) && |
148 | | - (ppd_keyword = _ppdCacheGetMediaType(cache, NULL, s)) != NULL) |
| 142 | + if ((ppd_keyword = _ppdCacheGetMediaType(cache, NULL, s)) != NULL) |
149 | 143 | ppd_mark_option(ppd, "MediaType", ppd_keyword); |
150 | 144 | } |
151 | 145 | } |
|
0 commit comments