From f5dd5a2deb895700047fd29906a5752284066174 Mon Sep 17 00:00:00 2001 From: Vitaly Perov Date: Mon, 31 Mar 2008 17:13:46 +0400 Subject: [PATCH] comdlg32: When PD_USEDEVMODECOPIESANDCOLLATE flag is not set dmCopies must be 1. --- dlls/comdlg32/printdlg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/comdlg32/printdlg.c b/dlls/comdlg32/printdlg.c index 5169d1b891c..ea5d34e5624 100644 --- a/dlls/comdlg32/printdlg.c +++ b/dlls/comdlg32/printdlg.c @@ -353,11 +353,14 @@ static BOOL PRINTDLG_UpdatePrintDlgA(HWND hDlg, if (lpdm->dmFields & DM_COPIES) lpdm->u1.s1.dmCopies = GetDlgItemInt(hDlg, edt3, NULL, FALSE); } else { + /* Application is responsible for multiple copies */ if (IsDlgButtonChecked(hDlg, chx2) == BST_CHECKED) lppd->Flags |= PD_COLLATE; else lppd->Flags &= ~PD_COLLATE; 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 */