7020528: closed/java/awt/print/PageFormat/PageFormatFromAttributes.java failed

Reviewed-by: igor, prr
This commit is contained in:
Jennifer Godinez 2011-03-08 11:47:38 -08:00
parent a816ca8a51
commit 6984d3041c

View File

@ -3699,7 +3699,9 @@ static void matchPaperSize(HDC printDC, HGLOBAL hDevMode, HGLOBAL hDevNames,
double* newWid, double *newHgt,
WORD* paperSize) {
const double epsilon = 0.50;
// Tolerated differences in comparing page dimensions between passed in
// "orig" media with that of Windows' device.
const double epsilon = 3.6; // (1/72) of an inch
const double tolerance = (1.0 * 72.0); // # inches * 72
*newWid = origWid;