Skip to content

Commit 1223b58

Browse files
committed
8212040: Compilation error due to wrong usage of NSPrintJobDispositionValue in mac10.12
Backport-of: a7c90c5
1 parent b878e3f commit 1223b58

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/java.desktop/macosx/native/libawt_lwawt/awt/CPrinterJob.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,7 @@ static void nsPrintInfoToJavaPrinterJob(JNIEnv* env, NSPrintInfo* src, jobject d
360360
DECLARE_METHOD(jm_setPageRangeAttribute, sjc_CPrinterJob, "setPageRangeAttribute", "(IIZ)V");
361361
DECLARE_METHOD(jm_setPrintToFile, sjc_CPrinterJob, "setPrintToFile", "(Z)V");
362362

363-
NSPrintJobDispositionValue jobDisposition = [src jobDisposition];
364-
if (jobDisposition == NSPrintSaveJob) {
363+
if (src.jobDisposition == NSPrintSaveJob) {
365364
(*env)->CallVoidMethod(env, dstPrinterJob, jm_setPrintToFile, true);
366365
} else {
367366
(*env)->CallVoidMethod(env, dstPrinterJob, jm_setPrintToFile, false);

0 commit comments

Comments
 (0)