RFR: 8295327: JavaFX - IllegalArgumentException when printing with margins equal to 0

Phil Race prr at openjdk.org
Mon Oct 31 21:37:28 UTC 2022


If floating point error caused a small negative value in the conversions needed from ISO to US measurements, then this will cause the IAE reported. 
The code doing the rounding should not have used Math.abs()

-------------

Commit messages:
 - 8295327

Changes: https://git.openjdk.org/jfx/pull/934/files
 Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=934&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8295327
  Stats: 4 lines in 1 file changed: 0 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/jfx/pull/934.diff
  Fetch: git fetch https://git.openjdk.org/jfx pull/934/head:pull/934

PR: https://git.openjdk.org/jfx/pull/934


More information about the openjfx-dev mailing list