Browse Source

Prevent exception when removing value.

Calling `DisposeAndRaiseUnset` can cause a nested reevaluation of property values.
pull/8600/head
Steven Kirk 4 years ago
parent
commit
061f01ac3a
  1. 3
      src/Avalonia.Base/PropertyStore/ValueStore.cs

3
src/Avalonia.Base/PropertyStore/ValueStore.cs

@ -899,6 +899,9 @@ namespace Avalonia.PropertyStore
{
RemoveEffectiveValue(key, i);
e.DisposeAndRaiseUnset(this, key);
if (i > _effectiveValues.Count)
break;
}
}
}

Loading…
Cancel
Save