The page setup info was not being set into the dev mode when printing ssilently.

Bug 119959 r=dcone sr=hyatt
This commit is contained in:
rods%netscape.com 2002-01-15 01:06:32 +00:00
parent 1517ddd0b2
commit 6048629c45

View File

@ -908,9 +908,12 @@ nsDeviceContextSpecWin :: ShowNativePrintDialog(nsIWidget *aWidget, PRBool aQuie
if (TRUE == result) {
if (mPrintSettings && prntdlg.hDevMode != NULL) {
LPDEVMODE devMode = (LPDEVMODE)::GlobalLock(prntdlg.hDevMode);
SetPrintSettingsFromDevMode(mPrintSettings, devMode);
::GlobalUnlock(prntdlg.hDevMode);
// when it is quite use the printsettings passed
if (!aQuiet) {
LPDEVMODE devMode = (LPDEVMODE)::GlobalLock(prntdlg.hDevMode);
SetPrintSettingsFromDevMode(mPrintSettings, devMode);
::GlobalUnlock(prntdlg.hDevMode);
}
}
DEVNAMES *devnames = (DEVNAMES *)::GlobalLock(prntdlg.hDevNames);
if ( NULL != devnames ) {
@ -996,7 +999,9 @@ nsDeviceContextSpecWin :: ShowNativePrintDialog(nsIWidget *aWidget, PRBool aQuie
// remove comment if you want to override the values from
// the native setup with those specified in the Page Setup
// mainly Paper Size, Orientation
// SetupPaperInfoFromSettings();
if (aQuiet) {
SetupPaperInfoFromSettings();
}
}
} else {