Allow line height less than font height.

This commit is contained in:
John Preston 2023-11-21 17:04:50 +04:00
parent 16772f440f
commit 69c8353746

View file

@ -847,7 +847,7 @@ int CountBlockHeight(
const style::TextStyle *st) { const style::TextStyle *st) {
return (block->type() == TextBlockType::Skip) return (block->type() == TextBlockType::Skip)
? static_cast<const SkipBlock*>(block)->height() ? static_cast<const SkipBlock*>(block)->height()
: (st->lineHeight > st->font->height) : st->lineHeight
? st->lineHeight ? st->lineHeight
: st->font->height; : st->font->height;
} }