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:
kjh-5727%comcast.net 2006-02-07 01:15:20 +00:00
Родитель 7d56f1391b
Коммит f9f3334a8f
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -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());