Commit e23d91a7 authored by Joanmarie Diggs's avatar Joanmarie Diggs

Correct the position and size reported for selectable table rows

parent e1759e98
......@@ -4599,10 +4599,15 @@ class Utilities:
return result or obj.parent
def getPositionAndSetSize(self, obj):
def getPositionAndSetSize(self, obj, **args):
if not obj:
return -1, -1
if obj.getRole() == pyatspi.ROLE_TABLE_CELL and args.get("readingRow"):
row, col = self.coordinatesForCell(obj)
rowcount, colcount = self.rowAndColumnCount(self.getTable(obj))
return row, rowcount
isComboBox = obj.getRole() == pyatspi.ROLE_COMBO_BOX
if isComboBox:
selected = self.selectedChildren(obj)
......
......@@ -2011,7 +2011,7 @@ class SpeechGenerator(generator.Generator):
result = []
acss = self.voice(SYSTEM)
position, total = self._script.utilities.getPositionAndSetSize(obj)
position, total = self._script.utilities.getPositionAndSetSize(obj, **args)
if position < 0 or total < 0:
return []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment