changeset 19 | fcece45ef507 |
parent 18 | 2f34d5167611 |
child 33 | 3e2da88830cd |
--- a/src/gui/text/qtextformat.cpp Fri Apr 16 15:50:13 2010 +0300 +++ b/src/gui/text/qtextformat.cpp Mon May 03 13:17:34 2010 +0300 @@ -3085,7 +3085,8 @@ f.d = new QTextFormatPrivate; f.d->resolveFont(defaultFnt); - hashes.insert(hash, idx); + if (!hashes.contains(hash, idx)) + hashes.insert(hash, idx); } QT_CATCH(...) { formats.pop_back();