But 431587: Use zoom-ratio when computing number of needed pages during print-selection. r+sr=roc a=damons
This commit is contained in:
Родитель
501836ae94
Коммит
1d0eddebaf
|
@ -2232,9 +2232,7 @@ nsPrintEngine::DoPrint(nsPrintObject * aPO)
|
|||
nscoord pageWidth, pageHeight;
|
||||
mPrt->mPrintDC->GetDeviceSurfaceDimensions(pageWidth, pageHeight);
|
||||
pageHeight -= totalMargin.top + totalMargin.bottom;
|
||||
// XXXdholbert does this num-pages calculation need to take
|
||||
// aPO->mZoomRatio into consideration?
|
||||
PRInt32 totalPages = NSToIntCeil(float(selectionHgt) / float(pageHeight));
|
||||
PRInt32 totalPages = NSToIntCeil(float(selectionHgt) * aPO->mZoomRatio / float(pageHeight));
|
||||
pageSequence->SetTotalNumPages(totalPages);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче