orca r3677 - in branches/gnome-2-22: . src/orca
- From: joanied svn gnome org
- To: svn-commits-list gnome org
- Subject: orca r3677 - in branches/gnome-2-22: . src/orca
- Date: Mon, 3 Mar 2008 01:16:02 +0000 (GMT)
Author: joanied
Date: Mon Mar 3 01:16:02 2008
New Revision: 3677
URL: http://svn.gnome.org/viewvc/orca?rev=3677&view=rev
Log:
* src/orca/Gecko.py:
Fix for bug #517277 - Orca should not get stuck while
browsing articles at espn.com
Modified:
branches/gnome-2-22/ChangeLog
branches/gnome-2-22/src/orca/Gecko.py
Modified: branches/gnome-2-22/src/orca/Gecko.py
==============================================================================
--- branches/gnome-2-22/src/orca/Gecko.py (original)
+++ branches/gnome-2-22/src/orca/Gecko.py Mon Mar 3 01:16:02 2008
@@ -7734,15 +7734,20 @@
childText = self.queryNonEmptyText(child)
if childText:
noChars = childText.characterCount
- [line, start, end] = \
+ [cLine, cStart, cEnd] = \
childText.getTextAtOffset(noChars - 1, boundary)
- obj = child
+ if cEnd - cStart > 1:
+ obj = child
+ start = cStart
+ else:
+ start += 1
elif child.getRole() != pyatspi.ROLE_LINK:
text = None
obj = child
else:
[line, start, end] = \
text.getTextAfterOffset(start + 1, boundary)
+
if text:
offset = start
else:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]