comdlg32: When PD_USEDEVMODECOPIESANDCOLLATE flag is not set dmCopies must be 1.

This commit is contained in:
Vitaly Perov 2008-03-31 17:13:46 +04:00 committed by Alexandre Julliard
parent 0a44a778f0
commit f5dd5a2deb
1 changed files with 3 additions and 0 deletions

View File

@ -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 */