[orca] Handle \ufffc without corresponding child when expanding embedded objects
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Handle \ufffc without corresponding child when expanding embedded objects
- Date: Thu, 30 Apr 2020 20:40:40 +0000 (UTC)
commit 1dc1b761b21cf9a83bf96afa685b6b63859b7f2c
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Apr 30 16:38:42 2020 -0400
Handle \ufffc without corresponding child when expanding embedded objects
It's possible that we won't be able to retrieve a child for a given
offset with an embedded object character. In that case, we still want
to eliminate/replace the embedded object character but need to check
for this condition before attempting to get the role of the child.
src/orca/script_utilities.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 150ea87ec..25ee8e941 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -2834,7 +2834,7 @@ class Utilities:
if char == self.EMBEDDED_OBJECT_CHARACTER:
child = self.getChildAtOffset(obj, i + startOffset)
result = self.expandEOCs(child)
- if child.getRole() in blockRoles:
+ if child and child.getRole() in blockRoles:
result += " "
toBuild[i] = result
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]