From 4a0f517ecc2632d6f9768de4577d3e374c478b5f Mon Sep 17 00:00:00 2001 From: Andrey Kunchev Date: Tue, 6 Oct 2020 16:16:39 +0300 Subject: [PATCH] Revert "possible fix for #4806 for text formatting with wrap" This reverts commit 37c2d0afb9b4b878aa2383b0c3f5d6ccdc56ed4d. --- .../Media/TextFormatting/TextFormatterImpl.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Avalonia.Visuals/Media/TextFormatting/TextFormatterImpl.cs b/src/Avalonia.Visuals/Media/TextFormatting/TextFormatterImpl.cs index 7e31d7e6ee..3e85f0f6f0 100644 --- a/src/Avalonia.Visuals/Media/TextFormatting/TextFormatterImpl.cs +++ b/src/Avalonia.Visuals/Media/TextFormatting/TextFormatterImpl.cs @@ -391,10 +391,6 @@ namespace Avalonia.Media.TextFormatting measuredLength = currentBreakPosition + lineBreaker.Current.PositionWrap; } } - else if (measuredLength == 0 && currentLength == 0) - { - measuredLength = 1; - } } currentLength += measuredLength;