Browse Source

Correctly check for text.Length

pull/4260/head
Benedikt Stebner 6 years ago
committed by GitHub
parent
commit
a6c0968218
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Skia/Avalonia.Skia/TextShaperImpl.cs

2
src/Skia/Avalonia.Skia/TextShaperImpl.cs

@ -82,7 +82,7 @@ namespace Avalonia.Skia
if (codepoint.IsBreakChar)
{
if (i < text.End)
if (i < text.Length)
{
var nextCodepoint = Codepoint.ReadAt(text, i + 1, out _);

Loading…
Cancel
Save