[orca] Fix structural navigation for tables in LibreOffice Writer
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix structural navigation for tables in LibreOffice Writer
- Date: Wed, 16 Oct 2013 14:00:57 +0000 (UTC)
commit 935a6b331ee664e3a30c52ec2dbdc8ea94c7d952
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Oct 16 09:59:59 2013 -0400
Fix structural navigation for tables in LibreOffice Writer
.../scripts/apps/soffice/structural_navigation.py | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/orca/scripts/apps/soffice/structural_navigation.py
b/src/orca/scripts/apps/soffice/structural_navigation.py
index 6af23b4..8e9a697 100644
--- a/src/orca/scripts/apps/soffice/structural_navigation.py
+++ b/src/orca/scripts/apps/soffice/structural_navigation.py
@@ -68,15 +68,17 @@ class StructuralNavigation(structural_navigation.StructuralNavigation):
except:
return False
+ parent = hash(obj.parent)
+
# Make sure we're in the correct table first.
#
- if not (table in self._script.dynamicRowHeaders or
- table in self._script.dynamicColumnHeaders):
+ if not (parent in self._script.dynamicRowHeaders or
+ parent in self._script.dynamicColumnHeaders):
return False
[row, col] = self.getCellCoordinates(obj)
- return (row == self._script.dynamicColumnHeaders.get(table) \
- or col == self._script.dynamicRowHeaders.get(table))
+ return (row == self._script.dynamicColumnHeaders.get(parent) \
+ or col == self._script.dynamicRowHeaders.get(parent))
def _tableCellPresentation(self, cell, arg):
"""Presents the table cell or indicates that one was not found.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]