Quantcast

[Nvda-dev] commit r1876 - trunk/source/NVDAObjects/IAccessible/IA2

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Nvda-dev] commit r1876 - trunk/source/NVDAObjects/IAccessible/IA2

NVDA Subversion
Author: mdcurran
Date: Thu Apr  3 04:55:27 2008
New Revision: 1876

Log:
IA2 NVDAObject's _isEqual method: if IA2's uniqueIDs and windowhandles are the same, then this is good enough to be True. Also put this check in a try except as it seems to fail in Gecko quite a bit.

Modified:
   trunk/source/NVDAObjects/IAccessible/IA2/__init__.py

Modified: trunk/source/NVDAObjects/IAccessible/IA2/__init__.py
==============================================================================
--- trunk/source/NVDAObjects/IAccessible/IA2/__init__.py (original)
+++ trunk/source/NVDAObjects/IAccessible/IA2/__init__.py Thu Apr  3 04:55:27 2008
@@ -139,8 +139,12 @@
  self.reviewPosition=self.makeTextInfo(textHandler.POSITION_CARET)
 
  def _isEqual(self,other):
- if isinstance(other,IA2) and self.IAccessibleObject.UniqueID==other.IAccessibleObject.UniqueID and super(IAccessible,self)._isEqual(other):
- return True
+ try:
+ if isinstance(other,IA2) and self.IAccessibleObject.UniqueID==other.IAccessibleObject.UniqueID and self.IAccessibleObject.windowHandle==other.IAccessibleObject.windowHandle:
+ return True
+ except:
+ pass
+
  return super(IA2,self)._isEqual(other)
 
  def _get_role(self):


Loading...