Browse Source

Text: use ascent rather than height

pull/974/head
krepa098 11 years ago
parent
commit
2003f7c5aa
  1. 2
      src/chatlog/content/text.cpp

2
src/chatlog/content/text.cpp

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

Loading…
Cancel
Save