Skip to content

Commit

Permalink
fix: Batik's SVG rendering hint don't accept null
Browse files Browse the repository at this point in the history
  • Loading branch information
bric3 committed May 21, 2024
1 parent 03ccd2c commit bb2feda
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ public void paintFrame(
(float) (frameRect.getY() + getFrameBoxTextOffset(g2))
);

g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, oldRenderingHint);
if (oldRenderingHint != null) {
g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, oldRenderingHint);
}
}

if (isHovered(renderFlags)) {
Expand Down

0 comments on commit bb2feda

Please sign in to comment.