Commit 9b7e2492 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Faster way of adding the elements

parent 2ff2cd94
......@@ -1848,12 +1848,7 @@ void TextPagePrivate::addNecessarySpace()
for(int i = 0 ; i < lines.length() ; i++)
{
TextList list = lines.at(i);
for(int k = 0 ; k < list.length() ; k++)
{
TinyTextEntity *ent = list.at(k);
tmpList.append(ent);
}
tmpList += lines.at(i);
}
tmpRegion.setText(tmpList);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment