Browse Source

Fix FillBuffer

pull/4260/head
Benedikt Stebner 6 years ago
committed by GitHub
parent
commit
718a50ccd8
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 (codepoint.IsBreakChar)
{ {
if (i < text.Length) if (i + 1 < text.Length)
{ {
var nextCodepoint = Codepoint.ReadAt(text, i + 1, out _); var nextCodepoint = Codepoint.ReadAt(text, i + 1, out _);

Loading…
Cancel
Save