From b0691681cb7334974a0e2c0dfa9f87571eeb57ec Mon Sep 17 00:00:00 2001 From: Benedikt Stebner Date: Mon, 21 Aug 2023 10:19:18 +0200 Subject: [PATCH] Allow setting a LineHeight that is smaller than the default --- src/Avalonia.Base/Media/TextFormatting/TextLineImpl.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Avalonia.Base/Media/TextFormatting/TextLineImpl.cs b/src/Avalonia.Base/Media/TextFormatting/TextLineImpl.cs index a2936f1857..2095ded67f 100644 --- a/src/Avalonia.Base/Media/TextFormatting/TextLineImpl.cs +++ b/src/Avalonia.Base/Media/TextFormatting/TextLineImpl.cs @@ -1282,10 +1282,7 @@ namespace Avalonia.Media.TextFormatting if (!double.IsNaN(lineHeight) && !MathUtilities.IsZero(lineHeight)) { - if (lineHeight > height) - { - height = lineHeight; - } + height = lineHeight; } return new TextLineMetrics