mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
GP-1612 - Fixed Help Viewer exception when animation is disabled
This commit is contained in:
parent
40aa807f8a
commit
a9f0e9239f
1 changed files with 6 additions and 3 deletions
|
@ -496,15 +496,18 @@ public class GHelpBroker extends DefaultHelpBroker {
|
|||
Rectangle relativeArea = SwingUtilities.convertRectangle(scrollPane, area, contentPane);
|
||||
Shape star = new StarShape(relativeArea.getLocation());
|
||||
|
||||
lastAnimator =
|
||||
Animator animator =
|
||||
AnimationUtils.createPaintingAnimator(helpWindow, new LocationHintPainter(star));
|
||||
lastAnimator.addTarget(new TimingTargetAdapter() {
|
||||
if (animator == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
lastAnimator = animator;
|
||||
lastAnimator.addTarget(new TimingTargetAdapter() {
|
||||
@Override
|
||||
public void end() {
|
||||
lastAnimator = null;
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue