Browse Source

[TextLayout] Do not call Draw with current TextLine.Start offset

pull/11034/head
Benedikt Stebner 4 years ago
parent
commit
a6bc0f9f73
  1. 2
      src/Avalonia.Base/Media/TextFormatting/TextLayout.cs

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

@ -174,7 +174,7 @@ namespace Avalonia.Media.TextFormatting
foreach (var textLine in _textLines)
{
textLine.Draw(context, new Point(currentX + textLine.Start, currentY));
textLine.Draw(context, new Point(currentX, currentY));
currentY += textLine.Height;
}

Loading…
Cancel
Save