Browse Source

Merge branch 'master' into textblock-textpresenter-ctor-perf

pull/2786/head
Dariusz Komosiński 7 years ago
committed by GitHub
parent
commit
61a2e709f2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Visuals/Rendering/SceneGraph/VisualNode.cs

2
src/Avalonia.Visuals/Rendering/SceneGraph/VisualNode.cs

@ -236,7 +236,7 @@ namespace Avalonia.Rendering.SceneGraph
{
foreach (var operation in DrawOperations)
{
if (operation.Item.HitTest(p))
if (operation?.Item?.HitTest(p) == true)
{
return true;
}

Loading…
Cancel
Save