From 604783214d19944978fb20b650afb121f2287347 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 27 Aug 2018 10:31:29 -0400 Subject: Fix JCL option support in PPD compiler (Issue #5379) --- ppdc/ppdc-driver.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ppdc') 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) -- cgit v1.2.1