Skip to content

Commit

Permalink
Tweak the bounds-check slop introduced in 1c863b0
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Dolski committed May 22, 2019
1 parent 3f9b350 commit c8a2ae3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ public BufferedImage readRegion(final Rectangle roi,
// (usually < 0.2 anecdotally) smaller than its regionRect
// dimension. The delta argument to contains() works around this,
// but it would be better to TODO: find out why the discrepancy exists and fix it.
if (!sourceRect.contains(regionRect, 0.15)) {
if (!sourceRect.contains(regionRect, 0.2)) {
throw new IllegalArgumentException(String.format(
"Rendered region is not entirely within the image " +
"on the canvas. This might be a bug. " +
Expand Down

0 comments on commit c8a2ae3

Please sign in to comment.