mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-06 00:10:25 +00:00
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:
parent
1517ddd0b2
commit
6048629c45
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user