Skip to content

Commit 06b336d

Browse files
authored
Merge pull request #12613 from Gillibald/fixes/lineHeight
Allow setting a LineHeight that is smaller than the default
2 parents a18ad58 + b069168 commit 06b336d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Avalonia.Base/Media/TextFormatting/TextLineImpl.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1282,10 +1282,7 @@ private TextLineMetrics CreateLineMetrics()
12821282

12831283
if (!double.IsNaN(lineHeight) && !MathUtilities.IsZero(lineHeight))
12841284
{
1285-
if (lineHeight > height)
1286-
{
1287-
height = lineHeight;
1288-
}
1285+
height = lineHeight;
12891286
}
12901287

12911288
return new TextLineMetrics

0 commit comments

Comments
 (0)