Browse Source

Remove null check

pull/1556/head
Wiesław Šoltés 9 years ago
parent
commit
3fb17af571
  1. 2
      src/Avalonia.Input/DragDropDevice.cs

2
src/Avalonia.Input/DragDropDevice.cs

@ -23,7 +23,7 @@ namespace Avalonia.Input
{ {
if (target == null) if (target == null)
return DragDropEffects.None; return DragDropEffects.None;
var args = new DragEventArgs(routedEvent, data, target, target != null ? inputRoot.TranslatePoint(point, target) : point) var args = new DragEventArgs(routedEvent, data, target, inputRoot.TranslatePoint(point, target))
{ {
RoutedEvent = routedEvent, RoutedEvent = routedEvent,
DragEffects = operation DragEffects = operation

Loading…
Cancel
Save