Browse Source

Fixed a crash when animators delete top-level components during a screen rotate animation

tags/2021-05-28
hogliux 8 years ago
parent
commit
a7b9da40a2
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      modules/juce_gui_basics/native/juce_ios_UIViewComponentPeer.mm

+ 3
- 2
modules/juce_gui_basics/native/juce_ios_UIViewComponentPeer.mm View File

@@ -312,8 +312,9 @@ private:
static void sendScreenBoundsUpdate (JuceUIViewController* c)
{
JuceUIView* juceView = (JuceUIView*) [c view];
jassert (juceView != nil && juceView->owner != nullptr);
juceView->owner->updateTransformAndScreenBounds();
if (juceView != nil && juceView->owner != nullptr)
juceView->owner->updateTransformAndScreenBounds();
}
static bool isKioskModeView (JuceUIViewController* c)


Loading…
Cancel
Save