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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|