diff options
Diffstat (limited to 'ppdc')
-rw-r--r-- | ppdc/ppdc-driver.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ppdc/ppdc-driver.cxx b/ppdc/ppdc-driver.cxx index 1a102901d..9547e91fa 100644 --- a/ppdc/ppdc-driver.cxx +++ b/ppdc/ppdc-driver.cxx @@ -1,7 +1,7 @@ // // PPD file compiler definitions for the CUPS PPD Compiler. // -// Copyright 2007-2014 by Apple Inc. +// Copyright 2007-2018 by Apple Inc. // Copyright 2002-2006 by Easy Software Products. // // Licensed under Apache License v2.0. See the file "LICENSE" for more information. @@ -1103,7 +1103,10 @@ ppdcDriver::write_ppd_file( cupsFilePrintf(fp, "*End%s", lf); } - cupsFilePrintf(fp, "*CloseUI: *%s%s", o->name->value, lf); + if (o->section == PPDC_SECTION_JCL) + cupsFilePrintf(fp, "*JCLCloseUI: *%s%s", o->name->value, lf); + else + cupsFilePrintf(fp, "*CloseUI: *%s%s", o->name->value, lf); snprintf(custom, sizeof(custom), "Custom%s", o->name->value); if ((a = find_attr(custom, "True")) != NULL) |