Skip to content

Commit

Permalink
Allow empty media slot (fixes failed tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Feb 17, 2021
1 parent af5ffb2 commit ea05fb6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pappl/printer-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1499,6 +1499,9 @@ validate_ready(

for (i = 0; i < num_ready; i ++)
{
if (!ready[i].size_name[0])
continue;

if (!pwgMediaForPWG(ready[i].size_name))
{
papplLogPrinter(printer, PAPPL_LOGLEVEL_ERROR, "Invalid media-ready.media-size-name='%s'.", ready[i].size_name);
Expand Down

0 comments on commit ea05fb6

Please sign in to comment.