Browse Source

Convert brush to immutable brush.

Fixes #1613.
pull/1624/head
Steven Kirk 8 years ago
parent
commit
147b6bfe54
  1. 2
      src/Windows/Avalonia.Direct2D1/Media/FormattedTextImpl.cs

2
src/Windows/Avalonia.Direct2D1/Media/FormattedTextImpl.cs

@ -101,7 +101,7 @@ namespace Avalonia.Direct2D1.Media
if (span.ForegroundBrush != null)
{
TextLayout.SetDrawingEffect(
new BrushWrapper(span.ForegroundBrush),
new BrushWrapper(span.ForegroundBrush.ToImmutable()),
new DWrite.TextRange(span.StartIndex, span.Length));
}
}

Loading…
Cancel
Save