Browse Source

Fix copypasta.

Co-authored-by: Max Katz <maxkatz6@outlook.com>
pull/8122/head
Steven Kirk 4 years ago
committed by GitHub
parent
commit
36fefd8717
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Controls/Viewbox.cs

2
src/Avalonia.Controls/Viewbox.cs

@ -95,7 +95,7 @@ namespace Avalonia.Controls
LogicalChildren.Remove(oldChild);
}
_containerVisual.Child = change.GetNewValue<IControl>();
_containerVisual.Child = newChild;
if (newChild is not null)
{

Loading…
Cancel
Save