Browse Source

Revert "possible fix for #4806 for text formatting with wrap"

This reverts commit 37c2d0afb9b4b878aa2383b0c3f5d6ccdc56ed4d.
Andrey Kunchev 5 years ago
parent
commit
4a0f517ecc
1 changed files with 0 additions and 4 deletions
  1. 0 4
      src/Avalonia.Visuals/Media/TextFormatting/TextFormatterImpl.cs

+ 0 - 4
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;