зеркало из https://github.com/mozilla/gecko-dev.git
1) Adds two bools to the PrintSettings and then when the PS gets
initialized from Prefs or from the Printer they get set. They get unset when the printer name changes. This is all necessary because the Page Setup Dialog calls initPrintSettingsFromPrinter each time it is shown. So if you have set values they will get "written" over the next time the dialog is shown. 2) Removes a lot of platform specific initialization from nsPrintOptionsImpl and it now uses just the the "generic" XP routines and is now consistent with the other platforms for initializing the PS. Bug 167894 r=dcone sr=kin a=roc
This commit is contained in:
Родитель
4bc90aec7c
Коммит
4348a44401
|
@ -463,6 +463,7 @@ NS_IMETHODIMP nsPrinterEnumeratorOS2::InitPrintSettingsFromPrinter(const PRUnich
|
|||
|
||||
// Free them, we won't need them for a while
|
||||
GlobalPrinters::GetInstance()->FreeGlobalPrinters();
|
||||
aPrintSettings->SetIsInitializedFromPrinter(PR_TRUE);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче