mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-10-23 05:31:02 +00:00
GP-2924 fixed null pointer exception in Project Lock dialog
This commit is contained in:
parent
db932d2228
commit
71b972f23b
|
@ -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 New Issue
Block a user