From aaa151f5c72fc27a84b17c0763af84fdbaef634c Mon Sep 17 00:00:00 2001 From: Glen Gordon <18452241+glenrgordon@users.noreply.github.com> Date: Thu, 1 Jan 2026 13:19:52 -0600 Subject: [PATCH] Return wxACC_NOT_IMPLEMENTED from wxWindowAccessible::GetParent() If a widget has a custom accessibility implementation derived from wxWindowAccessible, there's no guarantee that the parent overrides the nullptr-returning base CreateAccessible. Returning wxACC_NOT_IMPLEMENTED follows the pattern of other accessibility methods to defer to the platform's default implementation, and fixes wx wxWindowAccessible::GetParent() when called on custom accessibility implementations like wxCheckListBoxAccessible. Closes #26063. --- src/common/wincmn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index d90474d164..fc2ed79f6e 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -3955,7 +3955,7 @@ wxAccStatus wxWindowAccessible::GetParent(wxAccessible** parent) if (*parent) return wxACC_OK; else - return wxACC_FAIL; + return wxACC_NOT_IMPLEMENTED; } }