[orca] Fix for bgo#620098 - When a line in an OOo Writer document ends with a link which began on an earlie



commit db0085d290085f1c50473eaff51c78f207b2d0f3
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Sun May 30 11:01:45 2010 -0400

    Fix for bgo#620098 - When a line in an OOo Writer document ends with a link which began on an earlier line, Orca doesn't speak 'link'

 src/orca/script_utilities.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 3310690..c4cfda9 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -2360,7 +2360,7 @@ class Utilities:
 
             # We only care about links in the string, line:
             #
-            if startOffset < link.endIndex < endOffset:
+            if startOffset < link.endIndex <= endOffset:
                 index = link.endIndex - startOffset
             elif startOffset <= link.startIndex < endOffset:
                 index = len(line)



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