Browse Source

Small extra deletion safeguard in ComponentAnimator

tags/2021-05-28
jules 8 years ago
parent
commit
2bea97e24e
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      modules/juce_gui_basics/layout/juce_ComponentAnimator.cpp

+ 4
- 2
modules/juce_gui_basics/layout/juce_ComponentAnimator.cpp View File

@@ -131,11 +131,13 @@ public:
{
if (component != nullptr)
{
const WeakReference<AnimationTask> weakRef (this);
component->setAlpha ((float) destAlpha);
component->setBounds (destination);
if (proxy != nullptr)
component->setVisible (destAlpha > 0);
if (! weakRef.wasObjectDeleted())
if (proxy != nullptr)
component->setVisible (destAlpha > 0);
}
}


Loading…
Cancel
Save