1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Text: use ascent rather than height

This commit is contained in:
krepa098 2014-12-10 16:35:07 +01:00
parent 26718f7147
commit 2003f7c5aa

View File

@ -223,7 +223,7 @@ void Text::ensureIntegrity()
doc->documentLayout()->update();
if(doc->firstBlock().layout()->lineCount() > 0)
vOffset = doc->firstBlock().layout()->lineAt(0).height();
vOffset = doc->firstBlock().layout()->lineAt(0).ascent();
if(size != idealSize())
{