@@ -127,21 +127,15 @@ cupsMarkOptions(
127127 * Mark it...
128128 */
129129
130- if (!page_size || !page_size [0 ])
131- {
132- if (!_cups_strncasecmp (s , "Custom." , 7 ) || ppdPageSize (ppd , s ))
133- ppd_mark_option (ppd , "PageSize" , s );
134- else if ((ppd_keyword = _ppdCacheGetPageSize (cache , NULL , s , NULL )) != NULL )
135- ppd_mark_option (ppd , "PageSize" , ppd_keyword );
136- }
130+ if (!_cups_strncasecmp (s , "Custom." , 7 ) || ppdPageSize (ppd , s ))
131+ ppd_mark_option (ppd , "PageSize" , s );
132+ else if ((ppd_keyword = _ppdCacheGetPageSize (cache , NULL , s , NULL )) != NULL )
133+ ppd_mark_option (ppd , "PageSize" , ppd_keyword );
137134
138- if (cache && cache -> source_option &&
139- !cupsGetOption (cache -> source_option , num_options , options ) &&
140- (ppd_keyword = _ppdCacheGetInputSlot (cache , NULL , s )) != NULL )
135+ if (cache && cache -> source_option && (ppd_keyword = _ppdCacheGetInputSlot (cache , NULL , s )) != NULL )
141136 ppd_mark_option (ppd , cache -> source_option , ppd_keyword );
142137
143- if (!cupsGetOption ("MediaType" , num_options , options ) &&
144- (ppd_keyword = _ppdCacheGetMediaType (cache , NULL , s )) != NULL )
138+ if ((ppd_keyword = _ppdCacheGetMediaType (cache , NULL , s )) != NULL )
145139 ppd_mark_option (ppd , "MediaType" , ppd_keyword );
146140 }
147141 }
0 commit comments