[Mwinapi-commits] SF.net SVN: mwinapi:[119] trunk/ManagedWinapi/Accessibility/ SystemAccessibleObje
Status: Beta
Brought to you by:
schierlm
From: <zi...@us...> - 2014-11-25 14:27:06
|
Revision: 119 http://sourceforge.net/p/mwinapi/code/119 Author: ziewer Date: 2014-11-25 14:27:03 +0000 (Tue, 25 Nov 2014) Log Message: ----------- Error handling in SystemAccessibleObject.Location: Return empty bounds on error Modified Paths: -------------- trunk/ManagedWinapi/Accessibility/SystemAccessibleObject.cs Modified: trunk/ManagedWinapi/Accessibility/SystemAccessibleObject.cs =================================================================== --- trunk/ManagedWinapi/Accessibility/SystemAccessibleObject.cs 2013-07-23 09:11:58 UTC (rev 118) +++ trunk/ManagedWinapi/Accessibility/SystemAccessibleObject.cs 2014-11-25 14:27:03 UTC (rev 119) @@ -270,10 +270,13 @@ { get { - int x, y, w, h; - iacc.accLocation(out x, out y, out w, out h, childID); - return new Rectangle(x, y, w, h); - + try + { + int x, y, w, h; + iacc.accLocation(out x, out y, out w, out h, childID); + return new Rectangle(x, y, w, h); + } + catch { return Rectangle.Empty; } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |