orca r3825 - in branches/gnome-2-22: . src/orca



Author: joanied
Date: Tue Apr  8 23:30:48 2008
New Revision: 3825
URL: http://svn.gnome.org/viewvc/orca?rev=3825&view=rev

Log:
* src/orca/mag.py:
  Fix for bug #519416 - Zoomer loses focus when doing a web
  search.



Modified:
   branches/gnome-2-22/ChangeLog
   branches/gnome-2-22/src/orca/mag.py

Modified: branches/gnome-2-22/src/orca/mag.py
==============================================================================
--- branches/gnome-2-22/src/orca/mag.py	(original)
+++ branches/gnome-2-22/src/orca/mag.py	Tue Apr  8 23:30:48 2008
@@ -885,9 +885,13 @@
         try:
             text = obj.queryText()
             if text and (text.caretOffset >= 0):
+                offset = text.caretOffset
+                if offset == text.characterCount:
+                    offset -= 1
                 [x, y, width, height] = \
-                    text.getCharacterExtents(text.caretOffset, 0)
-                haveSomethingToMagnify = True
+                    text.getCharacterExtents(offset, 0)
+                haveSomethingToMagnify = (width + height > 0)
+                    
         except:
             haveSomethingToMagnify = False
 



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