[orca] Fix structural navigation bug impacting columns spanning multiple cells



commit 2a31d642f05ae10523f861215273d8bfe2559af4
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Oct 11 11:09:57 2022 +0200

    Fix structural navigation bug impacting columns spanning multiple cells
    
    Fixes issue #270.

 src/orca/structural_navigation.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/orca/structural_navigation.py b/src/orca/structural_navigation.py
index 8957c8b8d..110b64dfe 100644
--- a/src/orca/structural_navigation.py
+++ b/src/orca/structural_navigation.py
@@ -838,7 +838,8 @@ class StructuralNavigation:
                 elif desiredRow > nRows - 1:
                     self._script.presentMessage(messages.TABLE_COLUMN_BOTTOM)
                     desiredRow = nRows - 1
-            elif thisCell == cell or (settings.skipBlankCells and self._isBlankCell(cell)):
+            elif (thisCell == cell and (colDiff or rowDiff)) \
+                 or (settings.skipBlankCells and self._isBlankCell(cell)):
                 if colDiff < 0:
                     desiredCol -= 1
                 elif colDiff > 0:
@@ -847,8 +848,6 @@ class StructuralNavigation:
                     desiredRow -= 1
                 elif rowDiff > 0:
                     desiredRow += 1
-                else:
-                    break
             else:
                 break
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]