Browse Source

[Text] [Debug] fix Text output of TextRunDebuggerProxy

pull/9914/head
Sergey Mikolaitis 3 years ago
parent
commit
5fdb513303
  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