Browse Source

Merge pull request #9914 from Mikolaytis/FixTextRunDebuggerProxy

[Text] [Debug] fix Text output of TextRunDebuggerProxy
pull/9923/head
Benedikt Stebner 3 years ago
committed by GitHub
parent
commit
1e10fb1da7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Base/Media/TextFormatting/TextRun.cs

2
src/Avalonia.Base/Media/TextFormatting/TextRun.cs

@ -44,7 +44,7 @@ namespace Avalonia.Media.TextFormatting
fixed (char* charsPtr = characterBuffer.Span)
{
return new string(charsPtr, 0, characterBuffer.Span.Length);
return new string(charsPtr, _textRun.CharacterBufferReference.OffsetToFirstChar, _textRun.Length);
}
}
}

Loading…
Cancel
Save