comdlg32: When PD_USEDEVMODECOPIESANDCOLLATE flag is not set dmCopies must be 1.
This commit is contained in:
parent
0a44a778f0
commit
f5dd5a2deb
|
@ -353,11 +353,14 @@ static BOOL PRINTDLG_UpdatePrintDlgA(HWND hDlg,
|
||||||
if (lpdm->dmFields & DM_COPIES)
|
if (lpdm->dmFields & DM_COPIES)
|
||||||
lpdm->u1.s1.dmCopies = GetDlgItemInt(hDlg, edt3, NULL, FALSE);
|
lpdm->u1.s1.dmCopies = GetDlgItemInt(hDlg, edt3, NULL, FALSE);
|
||||||
} else {
|
} else {
|
||||||
|
/* Application is responsible for multiple copies */
|
||||||
if (IsDlgButtonChecked(hDlg, chx2) == BST_CHECKED)
|
if (IsDlgButtonChecked(hDlg, chx2) == BST_CHECKED)
|
||||||
lppd->Flags |= PD_COLLATE;
|
lppd->Flags |= PD_COLLATE;
|
||||||
else
|
else
|
||||||
lppd->Flags &= ~PD_COLLATE;
|
lppd->Flags &= ~PD_COLLATE;
|
||||||
lppd->nCopies = GetDlgItemInt(hDlg, edt3, NULL, FALSE);
|
lppd->nCopies = GetDlgItemInt(hDlg, edt3, NULL, FALSE);
|
||||||
|
/* multiple copies already included in the document. Driver must print only one copy */
|
||||||
|
lpdm->u1.s1.dmCopies = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Print quality, PrintDlg16 */
|
/* Print quality, PrintDlg16 */
|
||||||
|
|
Loading…
Reference in New Issue