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; }