followTo has been fixed

This commit is contained in:
Arin Alexander 2017-05-15 20:30:54 +03:00
parent c7a5b638e8
commit 2312c21d84

View File

@ -491,7 +491,9 @@ TextItem::TextPtr TextItem::textDocument() const
setTextFont(text,_font); setTextFont(text,_font);
} }
//text->documentLayout(); if (follower())
text->documentLayout();
if (m_lineSpacing != 1 || m_textIndent !=0 ){ if (m_lineSpacing != 1 || m_textIndent !=0 ){
for ( QTextBlock block = text->begin(); block.isValid(); block = block.next()) for ( QTextBlock block = text->begin(); block.isValid(); block = block.next())