Allow line height less than font height.
This commit is contained in:
parent
16772f440f
commit
69c8353746
1 changed files with 1 additions and 1 deletions
|
|
@ -847,7 +847,7 @@ int CountBlockHeight(
|
|||
const style::TextStyle *st) {
|
||||
return (block->type() == TextBlockType::Skip)
|
||||
? static_cast<const SkipBlock*>(block)->height()
|
||||
: (st->lineHeight > st->font->height)
|
||||
: st->lineHeight
|
||||
? st->lineHeight
|
||||
: st->font->height;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue