< prev index next >

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

Print this page

        

*** 315,326 **** static JNF_MEMBER_CACHE(jm_setCopiesAttribute, sjc_CPrinterJob, "setCopiesAttribute", "(I)V"); static JNF_MEMBER_CACHE(jm_setCollated, sjc_CPrinterJob, "setCollated", "(Z)V"); static JNF_MEMBER_CACHE(jm_setPageRangeAttribute, sjc_CPrinterJob, "setPageRangeAttribute", "(IIZ)V"); static JNF_MEMBER_CACHE(jm_setPrintToFile, sjc_CPrinterJob, "setPrintToFile", "(Z)V"); ! NSPrintJobDispositionValue jobDisposition = [src jobDisposition]; ! if (jobDisposition == NSPrintSaveJob) { JNFCallVoidMethod(env, dstPrinterJob, jm_setPrintToFile, true); } else { JNFCallVoidMethod(env, dstPrinterJob, jm_setPrintToFile, false); } --- 315,325 ---- static JNF_MEMBER_CACHE(jm_setCopiesAttribute, sjc_CPrinterJob, "setCopiesAttribute", "(I)V"); static JNF_MEMBER_CACHE(jm_setCollated, sjc_CPrinterJob, "setCollated", "(Z)V"); static JNF_MEMBER_CACHE(jm_setPageRangeAttribute, sjc_CPrinterJob, "setPageRangeAttribute", "(IIZ)V"); static JNF_MEMBER_CACHE(jm_setPrintToFile, sjc_CPrinterJob, "setPrintToFile", "(Z)V"); ! if (src.jobDisposition == NSPrintSaveJob) { JNFCallVoidMethod(env, dstPrinterJob, jm_setPrintToFile, true); } else { JNFCallVoidMethod(env, dstPrinterJob, jm_setPrintToFile, false); }
< prev index next >