[orca] Don't treat two landmarks as being on the same line
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't treat two landmarks as being on the same line
- Date: Wed, 24 Apr 2019 16:21:28 +0000 (UTC)
commit ec078b134206e9ea65620cb54b31405cad559096
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Apr 24 12:19:23 2019 -0400
Don't treat two landmarks as being on the same line
src/orca/scripts/web/script_utilities.py | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index ed587591d..c54bcdef3 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -1468,6 +1468,9 @@ class Utilities(script_utilities.Utilities):
if xStart == xEnd:
return False
+ if self.isLandmark(obj) and self.isLandmark(xObj) and obj != xObj:
+ return False
+
xExtents = self.getExtents(xObj, xStart, xStart + 1)
if self.isMathTopLevel(xObj) or self.isMath(obj):
onSameLine = self.extentsAreOnSameLine(extents, xExtents, extents[3])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]