зеркало из https://github.com/mozilla/gecko-dev.git
Bug 309988 - Default paper size was being set incorrectly. Patch by Christian Persch, chpe@gnome.org. r=kherron, sr=roc.
This commit is contained in:
Родитель
7d56f1391b
Коммит
f9f3334a8f
|
@ -1217,9 +1217,7 @@ NS_IMETHODIMP nsPrinterEnumeratorGTK::InitPrintSettingsFromPrinter(const PRUnich
|
|||
if (paper.Find(papername)) {
|
||||
DO_PR_DEBUG_LOG(("setting default paper size to '%s' (%g mm/%g mm)\n",
|
||||
paper.Name(), paper.Width_mm(), paper.Height_mm()));
|
||||
aPrintSettings->SetPaperSizeUnit(paper.IsMetric() ?
|
||||
(int)nsIPrintSettings::kPaperSizeMillimeters :
|
||||
(int)nsIPrintSettings::kPaperSizeInches);
|
||||
aPrintSettings->SetPaperSizeUnit(nsIPrintSettings::kPaperSizeMillimeters);
|
||||
aPrintSettings->SetPaperWidth(paper.Width_mm());
|
||||
aPrintSettings->SetPaperHeight(paper.Height_mm());
|
||||
aPrintSettings->SetPaperName(NS_ConvertASCIItoUCS2(paper.Name()).get());
|
||||
|
|
Загрузка…
Ссылка в новой задаче