7020528: closed/java/awt/print/PageFormat/PageFormatFromAttributes.java failed
authorjgodinez
Tue, 08 Mar 2011 11:47:38 -0800
changeset 8744 5f8a7e06e9a7
parent 8743 1d5b09a99c81
child 8745 6b9548badbaf
7020528: closed/java/awt/print/PageFormat/PageFormatFromAttributes.java failed Reviewed-by: igor, prr
jdk/src/windows/native/sun/windows/awt_PrintJob.cpp
--- a/jdk/src/windows/native/sun/windows/awt_PrintJob.cpp	Mon Mar 07 19:37:07 2011 -0800
+++ b/jdk/src/windows/native/sun/windows/awt_PrintJob.cpp	Tue Mar 08 11:47:38 2011 -0800
@@ -3699,7 +3699,9 @@
                            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;