diff --git a/src/Skia/Avalonia.Skia/TextShaperImpl.cs b/src/Skia/Avalonia.Skia/TextShaperImpl.cs index 31724bfee9..5cf72e2ce8 100644 --- a/src/Skia/Avalonia.Skia/TextShaperImpl.cs +++ b/src/Skia/Avalonia.Skia/TextShaperImpl.cs @@ -87,7 +87,7 @@ namespace Avalonia.Skia { var nextCodepoint = Codepoint.ReadAt(text, i + 1, out _); - if (nextCodepoint == '\r' && codepoint == '\n' || nextCodepoint == '\n' && codepoint == '\r') + if (nextCodepoint == '\n' && codepoint == '\r') { count++;