Skip to content

Commit 2cc9524

Browse files
committed
Disable text style overrides for text selection
1 parent 0843d6f commit 2cc9524

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Avalonia.Controls/Presenters/TextPresenter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,15 +485,15 @@ protected virtual TextLayout CreateTextLayout()
485485

486486
IReadOnlyList<ValueSpan<TextRunProperties>> textStyleOverrides = null;
487487

488-
if (length > 0)
488+
/*if (length > 0)
489489
{
490490
textStyleOverrides = new[]
491491
{
492492
new ValueSpan<TextRunProperties>(start, length,
493493
new GenericTextRunProperties(typeface, FontSize,
494494
foregroundBrush: SelectionForegroundBrush ?? Brushes.White))
495495
};
496-
}
496+
}*/
497497

498498
if (PasswordChar != default(char) && !RevealPassword)
499499
{

0 commit comments

Comments
 (0)