OSDN Git Service

RowWithFakeNavigation: Use getChild instead of children, as it's potentially much...
authorJames Teh <jamie@jantrid.net>
Wed, 5 Sep 2012 07:41:56 +0000 (17:41 +1000)
committerJames Teh <jamie@jantrid.net>
Wed, 5 Sep 2012 07:41:56 +0000 (17:41 +1000)
RowWithoutCellObjects: Implement getChild.

source/NVDAObjects/behaviors.py

index 5d3fe76..0f23d1d 100755 (executable)
@@ -405,7 +405,7 @@ class RowWithFakeNavigation(NVDAObject):
                child = column - 1\r
                if child >= self.childCount:\r
                        return\r
-               cell = self.children[child]\r
+               cell = self.getChild(child)\r
                self._moveToColumn(cell)\r
 \r
        def script_moveToNextColumn(self, gesture):\r
@@ -506,6 +506,9 @@ class RowWithoutCellObjects(NVDAObject):
        def _get_children(self):\r
                return [self._makeCell(column) for column in xrange(1, self.childCount + 1)]\r
 \r
+       def getChild(self, index):\r
+               return self._makeCell(index + 1)\r
+\r
 class _FakeTableCell(NVDAObject):\r
 \r
        role = controlTypes.ROLE_TABLECELL\r