Changeset 2405

Show
Ignore:
Timestamp:
10/01/08 00:27:20 (7 weeks ago)
Author:
mdcurran
Message:

IA2TextTextInfo: when trying to get paragraph offsets, if the offsets returned are equal, or start is greater than end, raise an exception -- other means of getting the offsets should be used instead. This now should make sure that when reading with the mouse that text in single line edit fields in Gecko apps should be read. Gecko doesn't support paragraph, but comtypes doesn't communicate s_false to us.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/source/NVDAObjects/IAccessible/__init__.py

    r2388 r2405  
    245245                try: 
    246246                        start,end,text=self.obj.IAccessibleTextObject.TextAtOffset(offset,IAccessibleHandler.IA2_TEXT_BOUNDARY_PARAGRAPH) 
     247                        if start>=end: 
     248                                raise RuntimeError("did not expand to paragraph correctly") 
    247249                        return start,end 
    248250                except: