[PATCH 0/1] MR8795: comdlg32: PRINTDLG_UpdatePrintDlgW() should update dmCopies field in DEVMODE.
From: Dmitry Timoshkov <dmitry(a)baikal.ru> This patch fixes printing multiple copies from IE8, and fixes f5dd5a2deb895700047fd29906a5752284066174 where this part is missing. Signed-off-by: Dmitry Timoshkov <dmitry(a)baikal.ru> --- dlls/comdlg32/printdlg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/comdlg32/printdlg.c b/dlls/comdlg32/printdlg.c index 84079c6a004..a56927116de 100644 --- a/dlls/comdlg32/printdlg.c +++ b/dlls/comdlg32/printdlg.c @@ -739,11 +739,14 @@ static BOOL PRINTDLG_UpdatePrintDlgW(HWND hDlg, if (lpdm->dmFields & DM_COPIES) lpdm->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->dmCopies = 1; } } GlobalUnlock(lppd->hDevMode); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/8795
This merge request was approved by Huw Davies. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8795
participants (3)
-
Dmitry Timoshkov -
Dmitry Timoshkov (@dmitry) -
Huw Davies (@huw)