From 69c8353746dbb36808b8349eff0cac0f057fa2f4 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 21 Nov 2023 17:04:50 +0400 Subject: [PATCH] Allow line height less than font height. --- ui/text/text_block.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/text/text_block.cpp b/ui/text/text_block.cpp index e24723d..afe8fb7 100644 --- a/ui/text/text_block.cpp +++ b/ui/text/text_block.cpp @@ -847,7 +847,7 @@ int CountBlockHeight( const style::TextStyle *st) { return (block->type() == TextBlockType::Skip) ? static_cast(block)->height() - : (st->lineHeight > st->font->height) + : st->lineHeight ? st->lineHeight : st->font->height; }