We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac8382b commit 748107aCopy full SHA for 748107a
modules/javafx.graphics/src/main/java/com/sun/prism/j2d/print/J2DPrinterJob.java
@@ -512,10 +512,10 @@ private void updatePageLayout() {
512
bm = pWid - mpaX - mpaW;
513
break;
514
}
515
- if (Math.abs(lm) < 0.01) lm = 0;
516
- if (Math.abs(rm) < 0.01) rm = 0;
517
- if (Math.abs(tm) < 0.01) tm = 0;
518
- if (Math.abs(bm) < 0.01) bm = 0;
+ if (lm < 0.01) lm = 0;
+ if (rm < 0.01) rm = 0;
+ if (tm < 0.01) tm = 0;
+ if (bm < 0.01) bm = 0;
519
newLayout = fxPrinter.createPageLayout(paper, orient,
520
lm, rm, tm, bm);
521
0 commit comments