1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Accessibility: Don't create AccessibilityHandler for Components without a native window handle

This commit is contained in:
ed 2021-07-21 17:12:45 +01:00
parent d6a5156dd5
commit a2f7aaab2f

View file

@ -3164,7 +3164,7 @@ void Component::invalidateAccessibilityHandler()
AccessibilityHandler* Component::getAccessibilityHandler()
{
if (flags.accessibilityIgnoredFlag)
if (flags.accessibilityIgnoredFlag || getWindowHandle() == nullptr)
return nullptr;
if (accessibilityHandler == nullptr