зеркало из https://github.com/mozilla/pjs.git
Fixing bug 223111. Making the page-setup settings shrink-to-fit and scaling persist across Mozilla instances. Patch by jblanco@us.ibm.com, and modiefied by me. r=ben, sr=bienvenu, a=asa.
This commit is contained in:
Родитель
66d51ebb5b
Коммит
da641bcb56
|
@ -526,6 +526,10 @@ void GlobalPrinters::GetDefaultPrinterName(PRUnichar*& aDefaultPrinterName)
|
|||
{
|
||||
aDefaultPrinterName = nsnull;
|
||||
|
||||
nsresult rv = GlobalPrinters::GetInstance()->InitializeGlobalPrinters();
|
||||
if (NS_FAILED(rv))
|
||||
return;
|
||||
|
||||
if (GetNumPrinters() == 0)
|
||||
return;
|
||||
|
||||
|
@ -538,6 +542,8 @@ void GlobalPrinters::GetDefaultPrinterName(PRUnichar*& aDefaultPrinterName)
|
|||
delete [] printerName;
|
||||
|
||||
aDefaultPrinterName = ToNewUnicode(nativePrinterName);
|
||||
|
||||
GlobalPrinters::GetInstance()->FreeGlobalPrinters();
|
||||
}
|
||||
|
||||
void GlobalPrinters::FreeGlobalPrinters()
|
||||
|
|
Загрузка…
Ссылка в новой задаче