orca r3824 - in trunk: . src/orca



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

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



Modified:
   trunk/ChangeLog
   trunk/src/orca/mag.py

Modified: trunk/src/orca/mag.py
==============================================================================
--- trunk/src/orca/mag.py	(original)
+++ trunk/src/orca/mag.py	Tue Apr  8 23:29:11 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]