Skip to content

Commit

Permalink
Fix casting of list of textruns
Browse files Browse the repository at this point in the history
  • Loading branch information
stefannikolei committed Jun 1, 2024
1 parent db32b13 commit ce0f50c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ImageSharp.Drawing/Processing/RichTextOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public RichTextOptions(RichTextOptions options)
/// </summary>
public new IReadOnlyList<RichTextRun> TextRuns
{
get => (IReadOnlyList<RichTextRun>)base.TextRuns;
get => base.TextRuns.Cast<RichTextRun>().ToList();
set => base.TextRuns = value;
}

Expand Down

0 comments on commit ce0f50c

Please sign in to comment.