orca r4364 - in branches/gnome-2-24: . src/orca
- From: joanied svn gnome org
- To: svn-commits-list gnome org
- Subject: orca r4364 - in branches/gnome-2-24: . src/orca
- Date: Sat, 22 Nov 2008 21:42:36 +0000 (UTC)
Author: joanied
Date: Sat Nov 22 21:42:36 2008
New Revision: 4364
URL: http://svn.gnome.org/viewvc/orca?rev=4364&view=rev
Log:
* src/orca/flat_review.py:
Fix for bug #495303 - Character flat review not working correctly
with generated texts in XUL.
Modified:
branches/gnome-2-24/ChangeLog
branches/gnome-2-24/src/orca/flat_review.py
Modified: branches/gnome-2-24/src/orca/flat_review.py
==============================================================================
--- branches/gnome-2-24/src/orca/flat_review.py (original)
+++ branches/gnome-2-24/src/orca/flat_review.py Sat Nov 22 21:42:36 2008
@@ -135,9 +135,14 @@
[char, startOffset, endOffset] = text.getTextAtOffset(
self.startOffset + i,
pyatspi.TEXT_BOUNDARY_CHAR)
+ # Sometimes we get more than a character's worth. See
+ # Bug #495303. We can try to correct this.
+ #
+ if len(char):
+ char = char.decode("UTF-8")[0].encode("UTF-8")
[x, y, width, height] = text.getRangeExtents(
startOffset,
- endOffset,
+ startOffset + 1,
0)
self.chars.append(Char(self,
i,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]