Browse Source

Remove unnecessary cast.

pull/12222/head
Steven Kirk 3 years ago
parent
commit
6a48527a52
  1. 3
      src/Windows/Avalonia.Win32/Automation/RootAutomationNode.cs

3
src/Windows/Avalonia.Win32/Automation/RootAutomationNode.cs

@ -33,8 +33,7 @@ namespace Avalonia.Win32.Automation
return null;
var p = WindowImpl.PointToClient(new PixelPoint((int)x, (int)y));
var peer = (WindowBaseAutomationPeer)Peer;
var found = InvokeSync(() => peer.GetPeerFromPoint(p));
var found = InvokeSync(() => Peer.GetPeerFromPoint(p));
var result = GetOrCreate(found) as IRawElementProviderFragment;
return result;
}

Loading…
Cancel
Save