mirror of
https://github.com/NationalSecurityAgency/ghidra
synced 2024-08-27 13:03:12 +00:00
Merge remote-tracking branch 'origin/GP-2924_ghidragon_project_lock_null_pointer_exception--SQUASHED'
This commit is contained in:
commit
b22062999a
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue