orca r4340 - in trunk: . src/orca
- From: joanied svn gnome org
- To: svn-commits-list gnome org
- Subject: orca r4340 - in trunk: . src/orca
- Date: Mon, 17 Nov 2008 23:02:19 +0000 (UTC)
Author: joanied
Date: Mon Nov 17 23:02:19 2008
New Revision: 4340
URL: http://svn.gnome.org/viewvc/orca?rev=4340&view=rev
Log:
* src/orca/flat_review.py:
Fix for bug #495303 - Character flat review not working correctly
with generated texts in XUL.
Modified:
trunk/ChangeLog
trunk/src/orca/flat_review.py
Modified: trunk/src/orca/flat_review.py
==============================================================================
--- trunk/src/orca/flat_review.py (original)
+++ trunk/src/orca/flat_review.py Mon Nov 17 23:02:19 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]