1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-22 01:34:21 +00:00

Small extra deletion safeguard in ComponentAnimator

This commit is contained in:
jules 2017-02-28 12:33:14 +00:00
parent 5ef379b1d9
commit 2bea97e24e

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);
}
}