Skip to content

Commit

Permalink
Fixed another adorner error with highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
X39 committed Mar 14, 2020
1 parent 722320e commit a1b498d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Arma.Studio.UiEditor/UI/Adorners/HighlightElementsAdorner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ private static void PropertyChangedCallback(DependencyObject sender, DependencyP
if (e.NewValue is bool newFlag && newFlag)
{
var adornerLayer = AdornerLayer.GetAdornerLayer(uiElement);
if (adornerLayer is null)
{
return;
}
var affected = new HighlightElementsAdorner(uiElement);
adornerLayer.Add(affected);
}
Expand Down

0 comments on commit a1b498d

Please sign in to comment.