Merge remote-tracking branch 'origin/GP-2924_ghidragon_project_lock_null_pointer_exception--SQUASHED'

This commit is contained in:
Ryan Kurtz 2022-12-12 13:25:18 -05:00
commit b22062999a
2 changed files with 4 additions and 2 deletions

View file

@ -497,8 +497,9 @@ public class TextLayoutGraphics extends Graphics2D {
@Override
public AffineTransform getTransform() {
// stub
return null;
// Some UIs (e.g. FlatLookAndFeel) expect a transform to be applied in some situations
// depending on high resolution monitor settings
return new AffineTransform();
}
@Override

View file

@ -773,6 +773,7 @@ public class HTMLUtilities {
new Rectangle(-size.width, -size.height, size.width * 2, size.height * 10);
TextLayoutGraphics g = new TextLayoutGraphics();
g.setClip(bounds);
label.paint(g);
g.flush();